From f3a4877ce79515ec4de13896bcf0f80460194796 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 7 Oct 2021 22:14:50 +0300 Subject: [PATCH] * support inline /* */ comments --- tools/quake3/common/scriplib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/quake3/common/scriplib.cpp b/tools/quake3/common/scriplib.cpp index 48055303..e4f3c8bc 100644 --- a/tools/quake3/common/scriplib.cpp +++ b/tools/quake3/common/scriplib.cpp @@ -211,13 +211,13 @@ skipspace: // /* */ comments if ( script.it[0] == '/' && script.it[1] == '*' ) { - if ( !crossline ) { - Error( "Line %i is incomplete\nFile location be: %s\n", scriptline, g_strLoadedFileLocation ); - } script.it += 2; while ( script.it[0] != '*' || script.it[1] != '/' ) { if ( *script.it == '\n' ) { + if ( !crossline ) { + Error( "Line %i is incomplete\nFile location be: %s\n", scriptline, g_strLoadedFileLocation ); + } script.line++; scriptline = script.line; }