Patch: Fix for Bug #669
Posted: 28 Mar 2007 12:03
Hi gang,
first of all, I'm new here. That didn't really keep me away from messing with the OTTD code a bit, just to get me started. I hope I did nothing wrong with this post, if I did, enlighten me
Attached to this post is a patch to solve
http://bugs.openttd.org/task/669
where Celestar reports that it's possible to build airports, ship ports and depots as well as road vehicle depots even at a time where none of these vehicle types are available (e.g. 1900).
My patch fixes this issue. An error message (see screenshot) is displayed when the player tries to build stations or depots without having the required vehicle type available. An exception is the bus and lorry station - I prevent building the depot, but not the stations since I couldn't find out how to distinguish these vehicle types.
Included in the patch are the localized error messages for english and german language.
I hope this is useful in some way or another - the bug tracker states this is scheduled for 0.51, but it's not yet implemented by someone else, so I decided I could fix that for starters.
Regards,
mindphlux
first of all, I'm new here. That didn't really keep me away from messing with the OTTD code a bit, just to get me started. I hope I did nothing wrong with this post, if I did, enlighten me
Attached to this post is a patch to solve
http://bugs.openttd.org/task/669
where Celestar reports that it's possible to build airports, ship ports and depots as well as road vehicle depots even at a time where none of these vehicle types are available (e.g. 1900).
My patch fixes this issue. An error message (see screenshot) is displayed when the player tries to build stations or depots without having the required vehicle type available. An exception is the bus and lorry station - I prevent building the depot, but not the stations since I couldn't find out how to distinguish these vehicle types.
Included in the patch are the localized error messages for english and german language.
I hope this is useful in some way or another - the bug tracker states this is scheduled for 0.51, but it's not yet implemented by someone else, so I decided I could fix that for starters.
Regards,
mindphlux