]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix parameter number
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 1 Sep 2011 07:49:18 +0000 (07:49 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 1 Sep 2011 08:17:12 +0000 (10:17 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11317 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0c520681a142ef15d2a0e28e9b3ee75d5fb1b7eb

model_shared.c

index 57ecd79c4f8fce5cd75af5f1e52cdd8f1e31c65c..c10341dc0a0e0084ce01d40ac697832ae92662b7 100644 (file)
@@ -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)