(svn r13242) -Codechange: remove _opt_ptr.

This commit is contained in:
rubidium
2008-05-25 12:57:39 +00:00
parent f6ea07e7d8
commit 5fa0946c08
10 changed files with 64 additions and 66 deletions

View File

@@ -68,7 +68,11 @@ CommandCost CmdSetRoadDriveSide(TileIndex tile, uint32 flags, uint32 p1, uint32
if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR;
if (flags & DC_EXEC) {
_opt_ptr->road_side = p1;
if (_game_mode == GM_MENU) {
_opt_newgame.road_side = p1;
} else {
_opt.road_side = p1;
}
InvalidateWindow(WC_GAME_OPTIONS, 0);
}
return CommandCost();