From 0c520681a142ef15d2a0e28e9b3ee75d5fb1b7eb Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 1 Sep 2011 07:49:18 +0000 Subject: [PATCH] fix parameter number git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11317 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/model_shared.c b/model_shared.c index 1dbb1831..40e7b278 100644 --- a/model_shared.c +++ b/model_shared.c @@ -2262,13 +2262,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) -- 2.39.2