mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-05 23:28:14 +02:00
* JsonReader can convert to enums
* refactoring
This commit is contained in:
@@ -760,7 +760,7 @@ void CInfoBar::CVisibleInfo::loadGameStatus()
|
||||
{
|
||||
if(LOCPLINT->cb->getPlayerStatus(i) == PlayerState::INGAME)
|
||||
{
|
||||
if (LOCPLINT->cb->getPlayerRelations(LOCPLINT->playerID, i) > 0)
|
||||
if (LOCPLINT->cb->getPlayerRelations(LOCPLINT->playerID, i) != PlayerRelations::ENEMIES)
|
||||
allies.push_back(i);
|
||||
else
|
||||
enemies.push_back(i);
|
||||
|
||||
Reference in New Issue
Block a user