equal
deleted
inserted
replaced
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; |