roadveh_cmd.c
changeset 5215 439d5ca71311
parent 5211 651c9272ad22
child 5256 90226d8da8fb
equal deleted inserted replaced
5214:521e6d945e5d 5215:439d5ca71311
   112 	int32 cost;
   112 	int32 cost;
   113 	Vehicle *v;
   113 	Vehicle *v;
   114 	UnitID unit_num;
   114 	UnitID unit_num;
   115 	Engine *e;
   115 	Engine *e;
   116 
   116 
   117 	if (!IsEngineBuildable(p1, VEH_Road)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
   117 	if (!IsEngineBuildable(p1, VEH_Road, _current_player)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
   118 
   118 
   119 	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
   119 	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
   120 
   120 
   121 	cost = EstimateRoadVehCost(p1);
   121 	cost = EstimateRoadVehCost(p1);
   122 	if (flags & DC_QUERY_COST) return cost;
   122 	if (flags & DC_QUERY_COST) return cost;