From 9d80a63e44f513ec984375af62969a738a6bbee3 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 2 Jun 2013 21:55:19 -0500 Subject: Check for shaders without closing brace Shaders without closing brace can eat shaders in other files. Pass depth to SkipBracedSection instead of reparsing text as it messed up parse line numbers. --- src/qcommon/q_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcommon/q_shared.h') diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index a85e3473..88322482 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -801,7 +801,7 @@ typedef struct pc_token_s void COM_MatchToken( char**buf_p, char *match ); -void SkipBracedSection (char **program); +qboolean SkipBracedSection (char **program, int depth); void SkipRestOfLine ( char **data ); void Parse1DMatrix (char **buf_p, int x, float *m); -- cgit