branch | noai |
changeset 10196 | aecabd927420 |
parent 10194 | c9fdeb7450da |
child 10197 | 45364e1f4a60 |
10194:c9fdeb7450da | 10196:aecabd927420 |
---|---|
139 |
139 |
140 default: NOT_REACHED(); |
140 default: NOT_REACHED(); |
141 } |
141 } |
142 } |
142 } |
143 |
143 |
144 /* static */ int32 AIEngine::GetPrice(EngineID engine_id) |
144 /* static */ Money AIEngine::GetPrice(EngineID engine_id) |
145 { |
145 { |
146 if (!IsValidEngine(engine_id)) return -1; |
146 if (!IsValidEngine(engine_id)) return -1; |
147 |
147 |
148 switch (::GetEngine(engine_id)->type) { |
148 switch (::GetEngine(engine_id)->type) { |
149 case VEH_ROAD: { |
149 case VEH_ROAD: { |