(svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) instead calling it every time the vehicle is drawn

This commit is contained in:
glx
2007-10-28 15:40:18 +00:00
parent e6116d11b8
commit 6120d02751
4 changed files with 26 additions and 2 deletions

View File

@@ -113,6 +113,7 @@ CommandCost CmdSetPlayerColor(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
default:
break;
}
ResetVehicleColorMap();
MarkWholeScreenDirty();
}
return CommandCost();