equal
deleted
inserted
replaced
249 * @param tile unused |
249 * @param tile unused |
250 * @param flags operation to perform |
250 * @param flags operation to perform |
251 * @param p1 the side of the road; 0 = left side and 1 = right side |
251 * @param p1 the side of the road; 0 = left side and 1 = right side |
252 * @param p2 unused |
252 * @param p2 unused |
253 */ |
253 */ |
254 int32 CmdSetRoadDriveSide(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
254 CommandCost CmdSetRoadDriveSide(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
255 { |
255 { |
256 /* Check boundaries and you can only change this if NO vehicles have been built yet, |
256 /* Check boundaries and you can only change this if NO vehicles have been built yet, |
257 * except in the intro-menu where of course it's always possible to do so. */ |
257 * except in the intro-menu where of course it's always possible to do so. */ |
258 if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR; |
258 if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR; |
259 |
259 |