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:
Vantha
2026-03-20 11:32:36 +01:00
committed by Vantha
parent 0cc025f675
commit 6456bccebe
9 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -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;
}