Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MapInfoParser|libcommon: Fix MapInfoParser::parseEndGame()
  • Loading branch information
danij-deng committed Jul 9, 2014
1 parent 251f85d commit 46dca40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doomsday/plugins/common/src/mapinfo.cpp
Expand Up @@ -303,15 +303,16 @@ class MapInfoParser
}

/**
* @note EndGame definitions appear inside a Map definition and unlike all
* other definition block types are scoped with curly-braces.
* @note EndGame definitions appear inside a Map definition and unlike all other definition
* block types are scoped with curly-braces.
*
* @param mapInfo MapInfo definition for which the EndGame subblock applies.
*/
void parseEndGame(MapInfo & /*mapInfo*/) // ZDoom
{
LOG_WARNING("MAPINFO Map.next[EndGame] definitions are not supported.");

lexer.readToken();
if(Str_CompareIgnoreCase(lexer.token(), "{"))
throw ParseError(String("Expected '{' but found '%1' on line #%2").arg(Str_Text(lexer.token())).arg(lexer.lineNumber()));

Expand Down

0 comments on commit 46dca40

Please sign in to comment.