Simplified the parsing, now the TestSuite reworks on Windows.

This commit is contained in:
Xawotihs
2011-10-01 17:07:11 +00:00
parent d47ece1202
commit daf362f736
8 changed files with 193 additions and 7 deletions

View File

@@ -111,9 +111,8 @@ RulesState::RulesState()
void RulesState::parsePlayerState(int playerId, string s)
{
stringstream stream(s);
streampos pos = stream.tellg();
stream >> *(playerData[playerId].player);
if(playerData[playerId].player->parseLine(s))
return;
size_t limiter = s.find("=");
if (limiter == string::npos) limiter = s.find(":");