ship_cmd.c
changeset 1282 ea2ae881814c
parent 1266 eccd576e322f
child 1313 f1013ec3d318
equal deleted inserted replaced
1281:dd226de69402 1282:ea2ae881814c
   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