]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix broken VM_CL_lightstyle (CSQC): it was using MSG_ReadString instead of value...
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Sep 2009 14:50:20 +0000 (14:50 +0000)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Sep 2009 14:50:20 +0000 (14:50 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9188 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 434152284490572f0ba73ac5407cdd1ce972296f..e107fb3983ed3a1bf01fcf6ca046ec5f8339a898 100644 (file)
@@ -551,7 +551,7 @@ static void VM_CL_lightstyle (void)
                VM_Warning("VM_CL_lightstyle >= MAX_LIGHTSTYLES\n");
                return;
        }
-       strlcpy (cl.lightstyle[i].map,  MSG_ReadString(), sizeof (cl.lightstyle[i].map));
+       strlcpy (cl.lightstyle[i].map, c, sizeof (cl.lightstyle[i].map));
        cl.lightstyle[i].map[MAX_STYLESTRING - 1] = 0;
        cl.lightstyle[i].length = (int)strlen(cl.lightstyle[i].map);
 }