mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 23:32:02 +00:00
Replace old GetState and SetState calls
966727b52e made the player state an enum and introduced more descriptive
functions to achieve the same thing, but it seems they were forgotten to
be replaced in a few places, which this patch fixes.
This commit is contained in:
+1
-1
@@ -495,7 +495,7 @@ bool CGame::IsGameFinished() const
|
||||
for (const std::pair<entity_id_t, IComponent*>& p : m_Simulation2->GetEntitiesWithInterface(IID_Player))
|
||||
{
|
||||
CmpPtr<ICmpPlayer> cmpPlayer(*m_Simulation2, p.first);
|
||||
if (cmpPlayer && cmpPlayer->GetState() == "won")
|
||||
if (cmpPlayer && cmpPlayer->HasWon())
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user