equal
deleted
inserted
replaced
216 } |
216 } |
217 |
217 |
218 } |
218 } |
219 |
219 |
220 /** Change the side of the road vehicles drive on (server only). |
220 /** Change the side of the road vehicles drive on (server only). |
221 * @param x,y unused |
221 * @param tile unused |
222 * @param p1 the side of the road; 0 = left side and 1 = right side |
222 * @param p1 the side of the road; 0 = left side and 1 = right side |
223 * @param p2 unused |
223 * @param p2 unused |
224 */ |
224 */ |
225 int32 CmdSetRoadDriveSide(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
225 int32 CmdSetRoadDriveSide(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) |
226 { |
226 { |
227 /* Check boundaries and you can only change this if NO vehicles have been built yet, |
227 /* Check boundaries and you can only change this if NO vehicles have been built yet, |
228 * except in the intro-menu where of course it's always possible to do so. */ |
228 * except in the intro-menu where of course it's always possible to do so. */ |
229 if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR; |
229 if (p1 > 1 || (_game_mode != GM_MENU && RoadVehiclesAreBuilt())) return CMD_ERROR; |
230 |
230 |