Added support for concurrent battles to gamestate and server

This commit is contained in:
Ivan Savenko committed 2023-09-06 16:03:02 +03:00
1 parent a21de70516
commit fc4dfda00f
24 files changed
+581 -444

No files matched your search

+2 -2
View File
@@ -49,7 +49,7 @@ bool CBattleQuery::blocksPack(const CPack * pack) const
void CBattleQuery::onRemoval(PlayerColor color)
{
if(result)
gh->battles->battleAfterLevelUp(*result);
gh->battles->battleAfterLevelUp(bi->battleID, *result);
}
CBattleDialogQuery::CBattleDialogQuery(CGameHandler * owner, const BattleInfo * Bi):
@@ -70,6 +70,6 @@ void CBattleDialogQuery::onRemoval(PlayerColor color)
}
else
{
gh->battles->endBattleConfirm(bi);
gh->battles->endBattleConfirm(bi->battleID);
}
}