equal
deleted
inserted
replaced
111 // p2 not used |
111 // p2 not used |
112 int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
112 int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
113 { |
113 { |
114 int32 cost; |
114 int32 cost; |
115 Vehicle *v; |
115 Vehicle *v; |
116 byte unit_num; |
116 UnitID unit_num; |
117 uint tile = TILE_FROM_XY(x,y); |
117 uint tile = TILE_FROM_XY(x,y); |
118 Engine *e; |
118 Engine *e; |
119 |
119 |
120 if (!IsEngineBuildable(p1, VEH_Road)) return CMD_ERROR; |
120 if (!IsEngineBuildable(p1, VEH_Road)) return CMD_ERROR; |
121 |
121 |