equal
deleted
inserted
replaced
871 // p1 = type to build |
871 // p1 = type to build |
872 int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
872 int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2) |
873 { |
873 { |
874 int32 value; |
874 int32 value; |
875 Vehicle *v; |
875 Vehicle *v; |
876 uint unit_num; |
876 UnitID unit_num; |
877 uint tile = TILE_FROM_XY(x,y); |
877 uint tile = TILE_FROM_XY(x,y); |
878 Engine *e; |
878 Engine *e; |
879 |
879 |
880 if (!IsEngineBuildable(p1, VEH_Ship)) return CMD_ERROR; |
880 if (!IsEngineBuildable(p1, VEH_Ship)) return CMD_ERROR; |
881 |
881 |