Fix: Game no longer crashes when the last vehicle serving a station has been
deleted. This is not exactly the same fix as in trunk/ where it might still
accept types of invalid types but it doesn't crash anymore. The true fix is
not possible without a savegame bump.
Codechange: Recursive commands that rely on _error_message to handle
success/failure can fail if a recursive call fails but doesn't set the
error message, thus resulting in an old, possibly erroneous being used
Fix: Remove VS2005 undefined vsnprintf() as it doesn't exist
in the windows libraries (only _vsnprintf). This caused the bad
function to be called that could result in non-properly terminated
strings
Fix: When, in a train that has multiple engines in front, the _first_
of those engines is sold, all the orders are copied to the second
engine (to ensure "seamless" operation). The next_shared/prev_shared
pointers where not updated correctly during this operation.
Fix: In the depot, moving wagons from the end of a very long train
to a short train where the short train was scrolled off the window
would cause a game crash.
Codechange: [Makefile]: removed MANUAL_CONFIG as it's not used anymore
This should hopefully fix the issue where WITH_SDL can be defined while
SDL_CONFIG is not. Added an error if WITH_SDL is defined but SDL_CONFIG
is not.
Replace the dash of SDL_CONFIG/LIBPNG_CONFIG with an underscore
Fix: [autoreplace] cost for refitting the new vehicle is now
added to the cost animation. The player always paid for it, but
it was not displayed until now
main reason is that it fixes the load/save issue for OSX 10.3.9, but the other stuff in this commit can't be taken as it's a result of the fix
full commit log entry:
-Codechange: [OSX] rewrite of how universal binaries are compiled
Now OSX stores object files in .OSX and instead of making FAT object files, there are one for each architecture
Each architecture got their own targets to make a non-FAT binary and in the end, lipo will merge them into one binary
It's now possible to select which architectures you want to support by defining OTTD_PPC, OTTD_PPC970 (G5) and/or OTTD_i386
All combos are supported. UNIVERSAL_BINARY and TRIPLE_BINARY can still be used even though it's possible to gain the same result by using the new flags
Making a universal build when you already got part of it compiled (say the PPC part), it will reuse it and only compile the i386 part to save time
Note: in some cases when you switch flags, you risk that openttd is not updated. Delete it and try again. The Makefile can't solve this except if it forces linking each time
This fixes: FS#87 universal binary building borked in 0.4.7
Now universal binaries work on OSX 10.3.9 again
Building universal binaries no longer needs to store flags in Makefile.config as the new design makes it possible to figure everything out automatically