- bugfix for loading older saved games (I added a new network player status which may not exist in older saved games). This should fix Pizza's load game issue
This commit is contained in:
parent
7315745316
commit
00d99eecd7
|
@ -475,9 +475,11 @@ public:
|
||||||
|
|
||||||
// int networkPlayerStatuses[GameConstants::maxPlayers];
|
// int networkPlayerStatuses[GameConstants::maxPlayers];
|
||||||
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
||||||
|
if(gameSettingsNode->hasChildAtIndex("networkPlayerGameStatus",idx) == true) {
|
||||||
const XmlNode *networkPlayerGameStatusNode = gameSettingsNode->getChild("networkPlayerGameStatus",idx);
|
const XmlNode *networkPlayerGameStatusNode = gameSettingsNode->getChild("networkPlayerGameStatus",idx);
|
||||||
networkPlayerGameStatus[idx] = networkPlayerGameStatusNode->getAttribute("game_status")->getIntValue();
|
networkPlayerGameStatus[idx] = networkPlayerGameStatusNode->getAttribute("game_status")->getIntValue();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// string networkPlayerLanguages[GameConstants::maxPlayers];
|
// string networkPlayerLanguages[GameConstants::maxPlayers];
|
||||||
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
for(int idx =0; idx < GameConstants::maxPlayers; idx++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user