1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Start of stabilization - battles now start correctly

This commit is contained in:
Ivan Savenko
2023-08-17 00:51:50 +03:00
parent 44832f3797
commit 6297140bf5
21 changed files with 601 additions and 584 deletions

View File

@@ -43,7 +43,7 @@ CBattleQuery::CBattleQuery(CGameHandler * owner):
bool CBattleQuery::blocksPack(const CPack * pack) const
{
const char * name = typeid(*pack).name();
return strcmp(name, typeid(MakeAction).name()) && strcmp(name, typeid(MakeCustomAction).name());
return strcmp(name, typeid(MakeAction).name()) != 0;
}
void CBattleQuery::onRemoval(PlayerColor color)