Skip to content

Commit

Permalink
IdTech1Converter|MapInfoTranslator: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 29, 2014
1 parent 447ed93 commit c0c2d96
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions doomsday/plugins/idtech1converter/src/mapinfotranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,12 +862,7 @@ DENG2_PIMPL(MapInfoParser)
if(!Str_CompareIgnoreCase(lexer.token(), "warptrans") ||
!Str_CompareIgnoreCase(lexer.token(), "levelnum") /* ZDoom */)
{
int const mapWarpNum = (int)lexer.readNumber();
if(mapWarpNum < 1)
{
throw ParseError(String("Invalid map warp-number '%1' on line #%2").arg(Str_Text(lexer.token())).arg(lexer.lineNumber()));
}
info->set("warpTrans", mapWarpNum);
info->set("warpTrans", (int)lexer.readNumber());
continue;
}

Expand Down

0 comments on commit c0c2d96

Please sign in to comment.