From: divverent Date: Thu, 1 Sep 2011 07:49:18 +0000 (+0000) Subject: fix parameter number X-Git-Tag: xonotic-v0.5.0~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=325f7c92344474ec6a08c545d7803b64f217121c;p=xonotic%2Fdarkplaces.git fix parameter number git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11317 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0c520681a142ef15d2a0e28e9b3ee75d5fb1b7eb --- diff --git a/model_shared.c b/model_shared.c index 57ecd79c..c10341dc 100644 --- a/model_shared.c +++ b/model_shared.c @@ -2246,13 +2246,13 @@ void Mod_LoadQ3Shaders(void) if (numparameters >= 5) { if(!strcasecmp(parameter[3], "bias")) - shader.offsetbias = atof(parameter[3]); + shader.offsetbias = atof(parameter[4]); else if(!strcasecmp(parameter[3], "match")) - shader.offsetbias = 1.0f - atof(parameter[3]); + shader.offsetbias = 1.0f - atof(parameter[4]); else if(!strcasecmp(parameter[3], "match8")) - shader.offsetbias = 1.0f - atof(parameter[3]) / 255.0f; + shader.offsetbias = 1.0f - atof(parameter[4]) / 255.0f; else if(!strcasecmp(parameter[3], "match16")) - shader.offsetbias = 1.0f - atof(parameter[3]) / 65535.0f; + shader.offsetbias = 1.0f - atof(parameter[4]) / 65535.0f; } } else if (!strcasecmp(parameter[0], "deformvertexes") && numparameters >= 2)