r1297 - trunk/code/renderer

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Apr 5 22:24:08 EDT 2008


Author: thilo
Date: 2008-04-05 22:24:07 -0400 (Sat, 05 Apr 2008)
New Revision: 1297

Modified:
   trunk/code/renderer/tr_shader.c
Log:
Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too.


Modified: trunk/code/renderer/tr_shader.c
===================================================================
--- trunk/code/renderer/tr_shader.c	2008-04-06 02:19:00 UTC (rev 1296)
+++ trunk/code/renderer/tr_shader.c	2008-04-06 02:24:07 UTC (rev 1297)
@@ -2906,7 +2906,7 @@
 			oldp = p;
 			
 			token = COM_ParseExt(&p, qtrue);
-			if(*token != '{')
+			if(token[0] != '{' && token[1] != '\0')
 			{
 				ri.Printf(PRINT_WARNING, "WARNING: Bad shader file %s has incorrect syntax.\n", filename);
 				ri.FS_FreeFile(buffers[i]);




More information about the quake3-commits mailing list