EC: fixed malformed race spawn conversion, issue #33

This commit is contained in:
suhrke
2017-07-05 16:14:17 -07:00
parent ff47d28870
commit 0e61e02259
2 changed files with 51 additions and 3 deletions

View File

@@ -286,11 +286,11 @@ EntityConverter::convertPlayerSpawn(std::vector<std::string> &lines)
}
else {
convertedLines.push_back ( "\"classname\" \"info_player_race\"" );
convertedLines.push_back ( "\"classname\" \"info_player_race\"\n" );
// Reflex maps have only start and finish, point to start on spawn
convertedLines.push_back ( "\"target\" \"cp1\"" );
convertedLines.push_back ( "\"target\" \"cp1\"\n" );
// Reflex maps are only cts, set spawn to cts-only type
convertedLines.push_back ( "\"race_place\" \"-1\"" );
convertedLines.push_back ( "\"race_place\" \"-1\"\n" );
}
std::stringstream oss;