From: havoc Date: Sun, 18 Feb 2007 12:35:52 +0000 (+0000) Subject: allow non-integer framerates for q3 shader animmap commands X-Git-Tag: xonotic-v0.1.0preview~3565 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5b9e6ce12c09bed079667ec46935a96b4ddd0c02;p=xonotic%2Fdarkplaces.git allow non-integer framerates for q3 shader animmap commands git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6850 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index e7673ada..d7fef5d5 100644 --- a/model_brush.c +++ b/model_brush.c @@ -4146,7 +4146,7 @@ static void Mod_Q3BSP_LoadShaders(void) { int i; layer->numframes = min(numparameters - 2, TEXTURE_MAXFRAMES); - layer->framerate = atoi(parameter[1]); + layer->framerate = atof(parameter[1]); for (i = 0;i < layer->numframes;i++) strlcpy(layer->texturename[i], parameter[i + 2], sizeof(layer->texturename)); }