ship_cmd.c
changeset 1197 433b4a05fa3e
parent 1196 67f7f3017d99
child 1205 1607043f1831
equal deleted inserted replaced
1196:67f7f3017d99 1197:433b4a05fa3e
   814 	Vehicle *v;
   814 	Vehicle *v;
   815 	uint unit_num;
   815 	uint unit_num;
   816 	uint tile = TILE_FROM_XY(x,y);
   816 	uint tile = TILE_FROM_XY(x,y);
   817 	Engine *e;
   817 	Engine *e;
   818 
   818 
   819 	if (!(IsEngineBuildable(p1, VEH_Ship))) return CMD_ERROR;
   819 	if (!IsEngineBuildable(p1, VEH_Ship)) return CMD_ERROR;
   820 
   820 
   821 	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
   821 	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
   822 
   822 
   823 	value = EstimateShipCost(p1);
   823 	value = EstimateShipCost(p1);
   824 	if (flags & DC_QUERY_COST)
   824 	if (flags & DC_QUERY_COST)