src/road_cmd.cpp
changeset 10828 e6bf52233c8a
parent 10775 7061477bfbcf
child 11064 7ebca843450b
equal deleted inserted replaced
10827:66cb8729f7d1 10828:e6bf52233c8a
    67 	 * except in the intro-menu where of course it's always possible to do so. */
    67 	 * except in the intro-menu where of course it's always possible to do so. */
    68 	if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR;
    68 	if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR;
    69 
    69 
    70 	if (flags & DC_EXEC) {
    70 	if (flags & DC_EXEC) {
    71 		if (_game_mode == GM_MENU) {
    71 		if (_game_mode == GM_MENU) {
    72 			_settings_game.vehicle.road_side = p1;
    72 			_settings_newgame.vehicle.road_side = p1;
    73 		} else {
    73 		} else {
    74 			_settings_game.vehicle.road_side = p1;
    74 			_settings_game.vehicle.road_side = p1;
    75 		}
    75 		}
    76 		InvalidateWindow(WC_GAME_OPTIONS, 0);
    76 		InvalidateWindow(WC_GAME_OPTIONS, 0);
    77 	}
    77 	}