Add an END specifiers to gamestate and order files

Game will now wait until the last line of an order file matches "END"
AI's MUST now finalise their order file with "END"

fixes #1
This commit is contained in:
mdiluzio 2014-12-20 16:24:07 +00:00
parent fec9c8dad7
commit f6f6d6fafd
3 changed files with 39 additions and 2 deletions

View file

@ -510,6 +510,7 @@ std::string CTTRTSGame::GetStateAsString() const
state += '\n';
state += GAME_HEADER_DELIMITER;
state += units;
state += "END";
return state;
}