This function appears to return exactly half the amount that the vehicle actually costs.
I tried vehicle 147 (ore truck) and get 7444 which is half of the 14888 reported in the New Road Vehicles list.
AIEngine::GetPrice
Moderator: OpenTTD Developers
AIEngine::GetPrice
Attila
"Artificial intelligence is no match for natural stupidity."
"Artificial intelligence is no match for natural stupidity."
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: AIEngine::GetPrice
Your money probably is not set to pounds but to $US or to Euros. The conversion rate to those currencies is a factor of two. Internally OpenTTD always uses pounds.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Who is online
Users browsing this forum: No registered users and 8 guests