equal
deleted
inserted
replaced
129 int32 cost; |
129 int32 cost; |
130 Vehicle *v; |
130 Vehicle *v; |
131 UnitID unit_num; |
131 UnitID unit_num; |
132 Engine *e; |
132 Engine *e; |
133 |
133 |
134 if (!IsEngineBuildable(p1, VEH_ROAD, _current_player)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE); |
134 if (!IsEngineBuildable(p1, VEH_ROAD, _current_player)) return_cmd_error(STR_ROAD_VEHICLE_NOT_AVAILABLE); |
135 |
135 |
136 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
136 SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES); |
137 |
137 |
138 cost = EstimateRoadVehCost(p1); |
138 cost = EstimateRoadVehCost(p1); |
139 if (flags & DC_QUERY_COST) return cost; |
139 if (flags & DC_QUERY_COST) return cost; |