1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

color filter cheats

This commit is contained in:
Laserlicht
2025-05-19 00:40:05 +02:00
parent 01bc8f2078
commit d102f660a0
17 changed files with 232 additions and 98 deletions

View File

@@ -1074,8 +1074,13 @@ void ApplyClientNetPackVisitor::visitSetAvailableArtifacts(SetAvailableArtifacts
}
}
void ApplyClientNetPackVisitor::visitEntitiesChanged(EntitiesChanged & pack)
{
callAllInterfaces(cl, &CGameInterface::invalidatePaths);
}
void ApplyClientNetPackVisitor::visitPlayerCheated(PlayerCheated & pack)
{
if(pack.colorScheme != ColorScheme::KEEP && vstd::contains(cl.playerint, pack.player))
cl.playerint[pack.player]->setColorScheme(pack.colorScheme);
}