diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index f8d1c84a..90ab488c 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -490,7 +490,7 @@ int CLangMngr::MergeDefinitionFile(const char *file) Data.currentFile = file; unsigned int line, col; - bool result = textparsers->ParseFile_INI(file, static_cast(this), &line, &col); + bool result = textparsers->ParseFile_INI(file, static_cast(this), &line, &col, false); if (!result) { diff --git a/amxmodx/CTextParsers.cpp b/amxmodx/CTextParsers.cpp index 8d384834..2e7a83c4 100644 --- a/amxmodx/CTextParsers.cpp +++ b/amxmodx/CTextParsers.cpp @@ -778,7 +778,7 @@ failed: * INI parser */ -bool TextParsers::ParseFile_INI(const char *file, ITextListener_INI *ini_listener, unsigned int *line, unsigned int *col) +bool TextParsers::ParseFile_INI(const char *file, ITextListener_INI *ini_listener, unsigned int *line, unsigned int *col, bool inline_comment) { FILE *fp = fopen(file, "rt"); unsigned int curline = 0; @@ -842,47 +842,50 @@ bool TextParsers::ParseFile_INI(const char *file, ITextListener_INI *ini_listene continue; } - /* Now search for comment characters */ - in_quote = false; - save_ptr = ptr; - for (size_t i = 0; i