mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge branch 'develop' into feature/nullkiller2
This commit is contained in:
@@ -1074,3 +1074,16 @@ void ApplyClientNetPackVisitor::visitPlayerCheated(PlayerCheated & pack)
|
||||
if(pack.colorScheme != ColorScheme::KEEP && vstd::contains(cl.playerint, pack.player))
|
||||
cl.playerint[pack.player]->setColorScheme(pack.colorScheme);
|
||||
}
|
||||
|
||||
void ApplyClientNetPackVisitor::visitChangeTownName(ChangeTownName & pack)
|
||||
{
|
||||
if(!adventureInt)
|
||||
return;
|
||||
|
||||
const CGTownInstance *town = gs.getTown(pack.tid);
|
||||
if(town)
|
||||
{
|
||||
adventureInt->onTownChanged(town);
|
||||
ENGINE->windows().totalRedraw();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user