aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-06 02:24:07 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-04-06 02:24:07 +0000
commit427e66b337746bbacf8ec8ae0db7c30ad186ba8e (patch)
treea96f90b0df0f98855bb937f79003bddd60e4c43f /code/renderer
parentd37d41a108cf99950c334932f91e5cea5ce23e8d (diff)
downloadioquake3-aero-427e66b337746bbacf8ec8ae0db7c30ad186ba8e.tar.gz
ioquake3-aero-427e66b337746bbacf8ec8ae0db7c30ad186ba8e.zip
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.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1297 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c
index 830a410..dfbea62 100644
--- a/code/renderer/tr_shader.c
+++ b/code/renderer/tr_shader.c
@@ -2906,7 +2906,7 @@ static void ScanAndLoadShaderFiles( void )
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]);