diff --git a/changelog.txt b/changelog.txt index 0dec01a277..6f9716e1d2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -135,7 +135,7 @@ - Fix: Only ever call any vehicle callbacks after the whole articulated engine has been built (except 0x16) (r15654) - Fix: new (this) is seldom a good idea as destructors of member variables are not run causing memory leaks [FS#2706] (r15652) - Fix: [OSX] Hack around an OSX stupidity in < 10.4 w.r.t. signals by not having any signal handling support for OSX < 10.4 (r15648) -- Fix: Add an EngineOverrideManager to give the term 'compatible newgrf' again some sense and to not crash because of trivial changes [FS#2612] (r15645) +- Fix: Add an EngineOverrideManager to give the term 'compatible NewGRF' again some sense and to not crash because of trivial changes [FS#2612] (r15645) - Fix: Closing a network connection twice in the case that sending packets starts failing while disconnecting [FS#2710] (r15644) - Fix: Game crashes when network pools are empty, so always allocate at least one pool block [FS#2712] (r15641) - Fix: Do not allow more than 64 road vehicles to reserve a slot at a single road stop. 255 + 1 gives trouble, but 64 is even more than the roadstop would be able to handle within the slot timeout time [FS#2707] (r15635) @@ -231,7 +231,7 @@ - Feature: Splitting of the main toolbar when the resolution becomes very low so the buttons are still visible and useable (r13339) - Feature: Make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history (r13317) - Feature: The number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages) (r13317) -- Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is (13226) +- Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is (13226) - Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist (r12924) - Feature: [NewGRF] The ability to play NewGRF sounds for industries and stations (r12817) - Feature: [NewGRF] Add some support for NewGRF station animation (r12798) @@ -239,7 +239,7 @@ - Feature: Conditional 'skip/jump' orders (r12667) - Feature: Ability to send a vehicle (using default orders) to the nearest depot (r12661) - Feature: Ability to force a vehicle to not load or to not unload at a station (r12650) -- Feature: Four different non-stop types, individually selectable per order. Replaces "TTDP compatible order" setting (r12648) +- Feature: Four different non-stop types, individually selectable per order. Replaces "TTDP compatible order" setting (r12648) - Feature: Three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting (r12648) - Feature: Financial and Player Selection Face windows are now remembering their position when toggling sizes (r12634) - Feature: Show what cargos a station could be supplied with (r12596) @@ -631,7 +631,7 @@ - Fix: Do not set station owner for buoys when merging company (r12093) - Fix: Keep production level within delimited boundaries, while using var result 0D/0E and than multiplying/dividing it [FS#1755] (r12092) - Fix: Assert when loading savegame with wrong tiletype at south map borders (r12088) -- Fix: Check overrides only for industries when mapping newgrf entities to 'real' entities [FS#1747] (r12086) +- Fix: Check overrides only for industries when mapping NewGRF entities to 'real' entities [FS#1747] (r12086) - Fix: Update waypoint signs when changing language (r12080) - Fix: Use search paths when opening console scripts (r12079) - Fix: When reusing a renamed deleted waypoint, keep the new name (r12076) @@ -823,7 +823,7 @@ - Feature: Support for encapsulating files into a .tar file; you can pack all files in your data/ directory in how ever many .tar files you like, keeping the directory-structure equal to the unpacked version, and OpenTTD can handle them just like the files were unpacked (r11106) - Feature: Allow slopes under statues (r11069) - Feature: [OSX] Added more options for right click emulation (controlled from the interface tab in the patch window) (r10996) -- Feature: Allow building and removing tracks and signals when there is a train on a parallel diagonal track that does not interact with this one. (r10922) +- Feature: Allow building and removing tracks and signals when there is a train on a parallel diagonal track that does not interact with this one (r10922) - Feature: Added TileHeight to the Land Area Information tool [FS#653] (r10878) - Feature: [OSX] OpenTTD will now pick the same language as finder is set to if no config file is found (r10851) - Feature: Provide an infrastructure to have resizable windows that are smaller than the default window size. Useful for playing on very low resolution systems (r10704) @@ -842,7 +842,7 @@ - Feature: Loading indicator, which shows in % how full a vehicle is while loading/unloading (r10254) - Feature: Introduce a form of timetabling for vehicles (r10236) - Feature: [NewGRF] Add support for action 0F (town name generator) (r10211) -- Feature: Add support for personal directories on Windows. (r10182) +- Feature: Add support for personal directories on Windows (r10182) - Feature: Add support for anti aliased typefaces via FreeType. This is configurable for each font size in the configuration settings and requires using the 32bpp blitter and suitable fonts (r10166) - Feature: 32 bpp sprite support and dedicated driver does not blit nor render by default. Can be overruled by user (r10121) - Feature: Add support for articulated road vehicles (r10097) @@ -891,7 +891,7 @@ - Feature: The station list does now remember the sort settings (r8065) - Feature: Make it possible to override the bind address and port of a dedicated server from the command line (r7802) - Feature: Add command line option to prevent saving of high score and configuration on exit and a console command to manually initiate a configuration save (r7801) -- Feature: Add support for tractive effort to 'realistic' acceleration (7592) +- Feature: Add support for tractive effort to 'realistic' acceleration (r7592) - Feature: Allow to build bridges of arbitrary rail/road combinations (including signals) (r7573) - Codechange: Do not allow configuration changes, that NewGRFs can directly use to change their behaviour, during network games as this can cause desyncs (r11452) - Codechange: Make opening a new toolbar not overlapping its parent one, by locating it under the parent, and aligned with the left side of it [FS#1310] (r11256) @@ -1087,7 +1087,7 @@ - Fix: Only non dedicated servers cannot have 0 players [FS#765] (r9785) - Fix: Remove arbitrary limit on length of NewGRF strings (r9775) - Fix: [NewGRF] Ignore axis-bit of station tile layouts [FS#756] (r9758) -- Fix: [win32] Dead key and open/close console. (r9728) +- Fix: [win32] Dead key and open/close console (r9728) - Fix: When you have closed the "Load game"/"New game" windows which you started from the "start server" menu, you should not start a server when starting a new game [SF#1244842] (r9757) - Fix: Trains were lost after autorenewal/autoreplace [FS#732] (r9753) - Fix: Stop flooded towns from building roads on water [FS#598] (r9743) @@ -1151,13 +1151,13 @@ - Fix: Do not keep on scrolling for non-numeric values in settings, but require reclick [FS#663] (r9064) - Fix: The personal (.openttd) directories were hidden in the load/save directory listings [FS#652] (r9043) - Fix: Desync caused by buffer overflow [FS#664] (r9027) -- Fix: When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length. (r9012) +- Fix: When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (r9012) - Fix: Play the correct engine sound based on the engine type instead of the sprite (r9009) - Fix: New locomotive names were not announced in the news, it said "new railway locomotive available - railway locomotive" [FS#581] (r9000, r9001) - Fix: [NewGRF] Do not select a disabled platform length/number of track count when going out of drag-drop mode [FS#450] (r8999) - Fix: [win] Resolution doubled in cfg file when fullscreen mode used [FS#642] (r8994) - Fix: The industry list should also be (re)set when the number of industries is 0 [FS#656] (r8980) -- Fix: [win] Possible buffer overflow if unicode text is pasted into an input box and needs trimming. (r8975) +- Fix: [win] Possible buffer overflow if unicode text is pasted into an input box and needs trimming (r8975) - Fix: [win] Support compilation with the Vista Platform SDK (r8974) - Fix: Crash on loading savegames with GRFs that do not have their GRF info/name set (r8955) - Fix: [NewGRF] support for vehicle variable 48 was wrong (r8943) @@ -1197,7 +1197,7 @@ 0.5.0-RC4 (2007-01-18) ------------------------------------------------------------------------ -- Feature: Increase spritecache size to 2MB, will increase performance in games using newgrf files (r8218) +- Feature: Increase spritecache size to 2MB, will increase performance in games using NewGRF files (r8218) - Feature: OS/2 support with GCC (Watcom is dropped) (r8042) - Codechange: Add Japanese, Slovenian language as an official translation and split Norwegian into Bokmal and Nynorsk (r7987, r8084, r8069) - Codechange: Show error messages about our own data files as a popup, or to stderr if console is available (and not to stdout) (r8013, r8134) @@ -1221,7 +1221,7 @@ - Fix: The configure script did not work work for dash, a sh compatible shell [FS#485] (r7893) - Fix: [OSX] control + enter no longer fullscreens, interfered with team-chat (r7886) - Fix: Offset engines/wagons by half width in details window; fixes overflowing for display (r7864) -- Fix: [OSX] Remove incorrect debug message about missing grf files. (r7766) +- Fix: [OSX] Remove incorrect debug message about missing grf files (r7766) - Fix: [sdl] sometimes ALT-TAB could trigger the fast forward (r7727) @@ -1244,10 +1244,10 @@ 0.5.0-RC1 (2006-12-21) ------------------------------------------------------------------------ -- General fixes and improvements to TTDPatch's newgrf format, most noticable are newstations, newsounds, more callbacks and I18n +- General fixes and improvements to TTDPatch's NewGRF format, most noticable are newstations, newsounds, more callbacks and I18n - Added languages: Bulgarian, Esperanto, Russian, Ukrainian, Languages with proper diacretics: Czech, Hungarian, Turkish -- Feature: Show NewGRF compatability of network games; green for full compatibility, yellow for missing newgrfs and red for invalid revision (r7505) -- Feature: Load a list of NewGRFs from the config (in the [newgrf-static] section) that should always be loaded (r7490) +- Feature: Show NewGRF compatability of network games; green for full compatibility, yellow for missing NewGRFs and red for invalid revision (r7505) +- Feature: Load a list of NewGRFs from the config (in the [NewGRF-static] section) that should always be loaded (r7490) - Feature: Double the length of the cargo and rating indicators in the station list window for better visibility (r7466) - Feature: NewGRF set up window and browser which allows modification and viewing of NewGRF settings ingame or the main menu (r7357) - Feature: Support for saving NewGRF settings with savegames (r7348) @@ -1341,7 +1341,7 @@ - Codechange: Completely remove the deprecated -p parameter (is superseded by -n) (r3508) - Fix: Town ratings were not reset when a company went bankrupt (r7433) - Fix: With realistic acceleration, guarantee a minimum braking force is applied. This ensures trains will stop when going down hill (r7425) -- Fix: Changed "kick off" acceleration resulted in only a small amount of power being applied; this resulted in a perceived delay before trains moved. (r7421) +- Fix: Changed "kick off" acceleration resulted in only a small amount of power being applied; this resulted in a perceived delay before trains moved (r7421) - Fix: Long delay for message windows to appear. Immediately show a new message if present if no news window is open, or has just been closed instead of waiting for the timer of the current news to time out [FS#255] (r7402) - Fix: Deleting Train in depot with autoreplace fails [FS#418] (r7385) - Fix: Do not update vehicle images when turning a train around. During this procedure the train is split into parts which can result in incorrect images being used (r7378) @@ -1352,10 +1352,10 @@ - Fix: Always display the excavation of roadworks even when fully zoomed out or "full details" are off (r7240) - Fix: Window allocation and deletion messed with the actual window pointer, possibly crashing OpenTTD [FS#350, SF#1560913] (r7205) - Fix: Callback not executed for non-player based patch changes in multiplayer for all clients; possible desync issue (r7190) -- Fix: Station sign (and base station coordinates) did not move along with station when station moved by walking. [FS#388] (r7169) +- Fix: Station sign (and base station coordinates) did not move along with station when station moved by walking [FS#388] (r7169) - Fix: MiniMap was misplacing vehicles sometimes [FS#402] (r7166) -- Fix: Some mouse events possibly lost under high CPU load, handle mouse input right away instead of waiting for GameLoop. [FS#221, SF1168820] (r7157) -- Fix: Some keyboard events possibly lost under high CPU load, handle keyboard input in place instead of global variables magic. [FS#279] (r7153) +- Fix: Some mouse events possibly lost under high CPU load, handle mouse input right away instead of waiting for GameLoop [FS#221, SF1168820] (r7157) +- Fix: Some keyboard events possibly lost under high CPU load, handle keyboard input in place instead of global variables magic [FS#279] (r7153) - Fix: "Position of Main Toolbar" option is not honored when starting new game or loading saved [FS#172] (r7130) - Fix: Synchronize the engine-renew settings of a player when joining a multiplayer game (r7126) - Fix: Several errors/glitches related to multiplayer and bankrupcy (mainly server), and non-updated company-information (r7125) @@ -1403,17 +1403,17 @@ 0.4.8 (2006-08-12) ------------------------------------------------------------------------ -- Fix: A ship in a depot must be stopped before it can be cloned. -- Fix: After changing directory in 'Play Scenario', the default scenarios didn't show up in 'New Game' +- Fix: A ship in a depot must be stopped before it can be cloned +- Fix: After changing directory in 'Play Scenario', the default scenarios did not show up in 'New Game' 0.4.8-RC2 (2006-07-31) ------------------------------------------------------------------------ - Feature: Add Italian town names as we have an official Italian translation -- Codechange: Verify the presence of music files in the gm/ folder. This should also solve some 100% CPU buildup for some users. -- Fix: Certain combinations of trains crash when moved around inside the depot. +- Codechange: Verify the presence of music files in the gm/ folder. This should also solve some 100% CPU buildup for some users +- Fix: Certain combinations of trains crash when moved around inside the depot - Fix: Reversed arrow-sign in the multiplayer list column headers on sort by name -- Fix: Industry production change button doesn't work for oilrig passangers. +- Fix: Industry production change button does not work for oilrig passangers - Fix: Helicopters stopping in depot after autorenew/autoreplace - Fix: MorphOS crashes when you go a level up in the root level - Fix: UDP sockets were used even if network-availability was set to false @@ -1424,59 +1424,59 @@ ------------------------------------------------------------------------ - Feature: Add Turkish town names as we have an official Turkish translation - Feature: Add a fully optional configure script that is a wrapper around the cumbersome makefile.config -- Codechange: [NPF] Disable NPF totally for ships as it wholly kills performance (blathijs). Only for 0.4/ branch and 0.4.8. +- Codechange: [NPF] Disable NPF totally for ships as it wholly kills performance. Only for 0.4/ branch and 0.4.8 - Fix: Redraw the screen when switching the signal side in the patches window - Fix: It was possible to dig into a tunnel if certain rail combinations were ontop of it - Fix: A HQ could only be flooded at its northern tile, the other 3 were immune to water - Fix: Fix several glitches concerning foundations. Houses, property (rail/road/bridge/etc.) and cursor are now aligned properly - Fix: Prohibit altering a road tile while road works are in progress. This fixes some glitches like "turning" the excavation by adding/removing road bits or removing the road piece - Fix: Only advertise the server to your external IP/network (eg not to 127.0.0.1) and use proper broadcast addresses -- Fix: '-f' switch is not valid on windows, so don't show it in help -- Fix: [autoreplace] Autoreplaced trains can leave all wagons in depot under certain circumstances +- Fix: '-f' switch is not valid on windows, so do not show it in help +- Fix: [Autoreplace] Autoreplaced trains can leave all wagons in depot under certain circumstances - Fix: The wrong IP could get unbanned, e.g. 'unban 1.2.3.42' could result in unbanning 1.2.3.4 - Fix: It was possible to convert the railtype of a bridge while a train was on it - Fix: It was possible to rename signs or waypoints with the chat box - Fix: Be more strict what it means for an aircraft to be in a hangar: It's not just being stopped on a hangar tile -- Fix: If a road vehicle is on a road depot tile and stopped doesn't mean it's in the depot. Use the proper test for this +- Fix: If a road vehicle is on a road depot tile and stopped does not mean it's in the depot. Use the proper test for this - Fix: [AI] The AI should send a plane into a hangar if it's not in a hangar _or_ not stopped, not when it's not in a hangar _and_ not stopped - Fix: [AI] The trolly AI used information from the wrong industry when calculating the amount of to be transported goods -- Fix: [NTP] Fix NTP over bridges: don't check the rail type when on a bridge -- Fix: Truncate text in dropdown lists to stop text overflowing. -- Fix: "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint. +- Fix: [NTP] Fix NTP over bridges: do not check the rail type when on a bridge +- Fix: Truncate text in dropdown lists to stop text overflowing +- Fix: "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint - Fix: Starting a new scenario did not adhere to local difficulty settings but took it from the scenario itself. That mode is for 'play scenario' - Fix: Vehicles on a sloped tile under a bridge were affected by the bridge speed limit -- Fix: Issue with train pathfinding over level crossings. -- Fix: [AI] The AI no longer attempts to build signals under bridges. +- Fix: Issue with train pathfinding over level crossings +- Fix: [AI] The AI no longer attempts to build signals under bridges - Fix: Refresh build vehicle window (if opened) when converting rail depot -- Fix: Crash when sorting an empty server list. -- Fix: The build-tree window button defaulted to a place-push-button on opening where no treetype is selected. +- Fix: Crash when sorting an empty server list +- Fix: The build-tree window button defaulted to a place-push-button on opening where no treetype is selected - Fix: Game crashes when cloning/autoreplace reaches train-limit - Fix: [NTP] properly check for railtypes on non-plain-rail-tiles - Fix: Trains could enter certain sloped rail tiles under bridges with incompatible rail type -- Fix: Ensure the map memory is cleared after it is allocated. This fixes random deserts that sometimes occurred. +- Fix: Ensure the map memory is cleared after it is allocated. This fixes random deserts that sometimes occurred - Fix: Some weird behaviour with tile selection near bridges -- Fix: Don't allow PF to enter train depot from the back (signal updates) +- Fix: Do not allow PF to enter train depot from the back (signal updates) - Fix: Game no longer crashes when the last vehicle servicing a station has been deleted - Fix: Reset the last built railtype when starting a new game - Fix: Cloned vehicles get the same service interval as the original vehicle -- Fix: Game no longer errors out when "Many random towns" is selected in the scenario editor. -- Fix: Obscure road dragging bug. The road build command did not return the appropiate error message of invalid-slope when building road. -- Fix: Temperate bank will no longer appear (during game) in tropic landscape. This bug is from the original game. -- Fix: Specify the 'stopall' console command as a debug command. +- Fix: Game no longer errors out when "Many random towns" is selected in the scenario editor +- Fix: Obscure road dragging bug. The road build command did not return the appropiate error message of invalid-slope when building road +- Fix: Temperate bank will no longer appear (during game) in tropic landscape. This bug is from the original game +- Fix: Specify the 'stopall' console command as a debug command - Fix: Fixed a problem that caused DeliverGoodsToIndustry to not work as intended - Fix: Ships and aircraft can now be used as feeders as well -- Fix: When a multiheaded train is sold the pointers were not updated correctly causing sporadious crashes/disconnects. +- Fix: When a multiheaded train is sold the pointers were not updated correctly causing sporadious crashes/disconnects - Fix: New plantations now cause the correct ".. being planted .." news item - Fix: Danish town names were saved/loaded as Swiss - Fix: Removing roads on crossings was done without a check for ownership -- Fix: [autoreplace] Fix drawing of train list for outdated engines +- Fix: [Autoreplace] Fix drawing of train list for outdated engines - Fix: Malicious clients/servers could crash the game -- Fix: [autoreplace] allow replacement of wagons even when the engine fails to be replaced +- Fix: [Autoreplace] allow replacement of wagons even when the engine fails to be replaced - Fix: Certain operations involving trains inside a depot could cause a crash -- Fix: [autoreplace] cost for refitting a new vehicle is added to the cost animation (player always paid for it, it just wasn't shown) +- Fix: [Autoreplace] cost for refitting a new vehicle is added to the cost animation (player always paid for it, it just was not shown) - Fix: [OSX] Save/Load issues solved for OSX 10.3.9 universal binaries - Fix: Illegal servers in the master-server list could kick the client back to the main menu, effectively making Multiplayer impossible -- Fix: [NPF] Don't mark tiles when debugging in multiplayer, this will cause desyncs +- Fix: [NPF] Do not mark tiles when debugging in multiplayer, this will cause desyncs - Fix: Several fixes to chatbox code, mainly plug a buffer overflow @@ -1485,7 +1485,7 @@ - Feature: [OSX] Add support for triple-binaries (PPC, PPC970, i386) (r4102) - Fix: [OSX] crash when going to fullscreen (r4100) - Fix: Allow unused wagons to have their first cache set. Fixes faulty cache-warning message and noticably speeds up depot operations (r4094) -- Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. (r4072) +- Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop (r4072) 0.4.6 (2006-03-22) @@ -1493,187 +1493,187 @@ - Codechange: [win32] Show the revision in crash.txt and enable the button to show the crash text in the crash-window (r3965) - Codechange: Add additional linker information to release builds to help figure out crashes more easily (r3526) -- Fix: [OSX 10.3 and newer] [ 1157244 ] Can't save game if name contains german umlauts (loading savegames with certain chars still look odd) (r4038) +- Fix: [OSX] Cannot save game if name contains german umlauts (loading savegames with certain chars still look odd) [SF#1157244] (r4038) - Fix: [OSX] major speedup for PPC fullscreen (r4034) -- Fix: [Makefile] Make sure the ICON_DIR gets created before copying files there. (r4032) -- Fix: [win32] Change compiler settings to use the multithreaded CRT. This prevents certain crashes on multi-threaded machines. (r4031) -- Fix: [ 1453646 NPF ] Road vehicles planning through the back of depots and stations. (r4029) -- Fix: Use the title of a savegame in the saveload dialog-editbox. (r4018) -- Fix: Improper resolution written to the configuration file when exiting from fullscreen. (r4017) -- Fix: When removing rail track from a tile where only X and Y pieces exist, explicitly update signals in both directions. (r4016) -- Fix: Default the patch-setting 'pause_on_join' to true. (r4015) +- Fix: [Makefile] Make sure the ICON_DIR gets created before copying files there (r4032) +- Fix: [win32] Change compiler settings to use the multithreaded CRT. This prevents certain crashes on multi-threaded machines (r4031) +- Fix: [NPF] Road vehicles planning through the back of depots and stations [SF#1453646] (r4029) +- Fix: Use the title of a savegame in the saveload dialog-editbox (r4018) +- Fix: Improper resolution written to the configuration file when exiting from fullscreen (r4017) +- Fix: When removing rail track from a tile where only X and Y pieces exist, explicitly update signals in both directions (r4016) +- Fix: Default the patch-setting 'pause_on_join' to true (r4015) - Fix: Slope and height information returned for some tile types is wrong (r4014) -- Fix: Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts. (r4012) +- Fix: Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts (r4012) - Fix: Update french translation (r3978) -- Fix: FS#56 - [Crash] Missing glyph(s) in big-font. Added several missing glyphs for the big font. (r3970) -- Fix: [ 1439907 ] Increase client list window width so at least most languages fit. (r3969) -- Fix: Update german and finnish languages. (r3968) -- Fix: Properly set back the owner of a crossing/road-under bridge after removing it. (r3967) -- Fix: [autoreplace]: (FS#67) autoreplacing trains now keep their tile length instead of their pixel length. (r3964) -- Fix: Mark the right tile as dirty. It's just a graphical glitch which happend in r1592. (r3962) -- Fix: Fix crash when resizing news history window. (r3961) -- Fix: Correctly implement minimum search, so road vehicles head twoards the closest station, not the last one in the list. (r3960) -- Fix: [FS#61] The tooltips for raising and lowering land buttons in the scenario editor are interchanged (r3959) -- Fix: Correctly restore the roadside after roadworks are finished. (r3957) -- Fix: [Multistop] Check the status of the destination road stop instead of a station's first road stop. This only has effect with road vehicle queuing disabled. (r3956) -- Fix: validate the setting of max_companies/spectators through the console. (r3955) -- Fix: Improve game-load times. (r3954) -- Fix: On loading a game, GetPlayerRailtypes() didn't account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs. (r3952) -- Fix: Restore plural forms of cargo types for several languages. (r3951) -- Fix: [win32] Add directives to allow Visual Studio 2005 compilation. (r3950) -- Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (r3948) +- Fix: Missing glyph(s) in big-font. Added several missing glyphs for the big font [FS#56] (r3970) +- Fix: Increase client list window width so at least most languages fit [SF#1439907] (r3969) +- Fix: Update german and finnish languages (r3968) +- Fix: Properly set back the owner of a crossing/road-under bridge after removing it (r3967) +- Fix: [Autoreplace] Autoreplacing trains now keep their tile length instead of their pixel length [FS#67] (r3964) +- Fix: Mark the right tile as dirty. It's just a graphical glitch which happend in r1592 (r3962) +- Fix: Fix crash when resizing news history window (r3961) +- Fix: Correctly implement minimum search, so road vehicles head twoards the closest station, not the last one in the list (r3960) +- Fix: The tooltips for raising and lowering land buttons in the scenario editor are interchanged [FS#61] (r3959) +- Fix: Correctly restore the roadside after roadworks are finished (r3957) +- Fix: [Multistop] Check the status of the destination road stop instead of a station's first road stop. This only has effect with road vehicle queuing disabled (r3956) +- Fix: validate the setting of max_companies/spectators through the console (r3955) +- Fix: Improve game-load times (r3954) +- Fix: On loading a game, GetPlayerRailtypes() did not account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs (r3952) +- Fix: Restore plural forms of cargo types for several languages (r3951) +- Fix: [win32] Add directives to allow Visual Studio 2005 compilation (r3950) +- Fix: Crash in string code with openbsd/zaurus; alignment issues [SF#1415782] (r3948) 0.4.5 (2006-01-31) ------------------------------------------------------------------------ -- Feature: [newgrf] Implement varaction2 property 0x41 and 0xDA. (2361) -- Feature: giving server_ip a value of 'all' will make the server listen on any interface (2374) -- Feature: shortcut CTRL + U that clears the current input-box (2385) -- Feature: [newgrf] Implement the mechanism for handling newgrf callbacks (2389) -- Feature: [newgrf] Implement the 'refit capacity' callback (2389) -- Feature: saving games happen in a seperate thread (2391) -- Feature: [newgrf] Implement powered wagons, and the callback that goes with it (2414) -- Feature: [newgrf] Implement shorter train vehicles (2428) -- Feature: New display option: 'transparent station signs' (2438) -- Feature: You can now give transfer order to set up feeder systems (2441) -- Feature: Removing tracks with the 'remove' tool, automatically removes signals on the tracks (2469) -- Feature: [localisation] Allow changing the order of parameters in translated strings (2573) -- Feature: [localisation] New way to specify plural forms (2592) -- Feature: [localisation] Support genders (2594) -- Feature: [localisation] Support cases (2597) -- Feature: add support for truncating strings to a given (pixel) length (2607) -- Feature: Overhaul DirectMusic MIDI backend, remove "experimental" status (2712) -- Feature: Change the driver probing algorithm: Use the first music/sound/video which succeeds initialising instead of bailing out after the first. No need to specify -snull if no soundcard is present anymore (2728) -- Feature: The Main Toolbar Dropdown Menu can now display disabled items (2734) -- Feature: Clone vehicles (2764) -- Feature: When starting without a config file determine the language on basis of the current locale (2777) -- Feature: [NewGRF] Add support for "extended bytes" (2872) -- Feature: [localisation] Major step twoards ISO-8859-15: Implement missing characters (2879) -- Feature: Implement the console command rm to remove savegames (2941) -- Feature: Danish town names (2957) -- Feature: Menu option to toggle console (2958) -- Feature: Calculate proportions of non-square giant screenshot correctly (2963) -- Feature: [newgrf] Implement current set of action D (ParamSet) operations (2968) -- Feature: [newgrf] Show a wagon's speed limit in purchase list (2969) -- Feature: [newgrf] Support loading VarAction2 parameter for variables 0x60-0x7F (2971) -- Feature: [newgrf] Add patch option for wagon speed limits (2982) -- Feature: [newgrf] Support loading of bridge attributes and tables from GRF (3004) -- Feature: Native Support for Win64 (3008) -- Feature: OSX now uses quicktime to play midi files (3022) -- Feature: [OSX] Command+Q now works in main menu (3027) -- Feature: Allow unbanning players based on banlist-id (as well as IP) (3067) -- Feature: 'status' and 'clients' now show the IP of the players (3067) -- Feature: Make it possible to create a screenshot from the console that is both big and has no console, or any combination of (3068) -- Feature: [newgrf] Add support for rail vehicle weight greater than 255 tons (3071) -- Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (3096) -- Feature: Turkish translation (3120) -- Feature: [newgrf] Support positioning of rail vehicle visual effects (3132) -- Feature: [newgrf] Support for articulated rail vehicles (3139) -- Feature: [newgrf] Add support for cargo refitting specification by cargo classes (3148) -- Feature: [newgrf] Action 7/9 new value : is it TTDPatch or OpenTTD? (3152) -- Feature: Drag and drop rocky areas in scenario editor (3153) -- Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars (3157) -- Feature: Right-Click-Scrolling optionally moves in the opposite direction (3222) -- Feature: Native cocoa sound and video drivers for OSX (3281) -- Feature: [newgrf] Allow train running cost class to differ from engine class (3388) -- Feature: Kick and ban now with IP numbers (3407) -- Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console (3427) -- Feature: Allow the network game list to be sorted (by name/clients/compatibility ascending/descending) (3441) -- Feature: Make it possible to ban offline clients (3469) -- Fix: The refit window now shows the correct refit options (2365) -- Fix: Refitting to a cargo which is already carried by some vehicles takes their capacities into account for display (2365) -- Fix: Add 'multihead' TTDPatch option to OpenTTD newgrf flags-emulation (2368) -- Fix: make install tried to install scenarios in the (non-existing) personal dir when USE_HOMEDIR is specified (2371) -- Fix: [console] update the example scripts in the scripts/ directory to reflect the new console functionality (2372) -- Fix: [console] any line starting with a '#' is a comment so ignore it (2372) -- Fix: [console] The special variables whose value can only be set by a custom process should, also print out their newly set value there (2372) -- Fix: [newgrf] Ignore action 0 prop 0x20 (air drag) (2377) -- Fix: [newgrf] Further property stubs, help prevents subsequent incorrect reading of newgrf data (2378) -- Fix: Build year for mail compartment of planes was not set correctly, affected station ratings (2380) -- Fix: Endgame window on easy difficulty resulted in infinite loop (2381) -- Fix: Check the airport type when building an airport (2382) -- Fix: Monkey-testing turned up some command crashes (2383) -- Fix: Check selling land and setting player colour. Also an extra map-bounds check for terraforming (2384) -- Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot (2388) -- Fix: [newgrf] Load power for dual-headed engines correctly (2400) -- Fix: [newgrf] When resolving callbacks, dont ignore wagon overrides (2410) -- Fix: Station ratings aren't affected by speed limits from realistic acceleration anymore (2411) -- Fix: building vehicles without depot crashed the game (2412) -- Fix: certain resolutions caused a crash when minimap was partly dragged outside the game window (2424) -- Fix: Deleting canals under bridges removed bridges first in certain configurations (2436) -- Fix: [NPF] Vehicles try to drive into a tunnel entrance from above (2471) -- Fix: [newgrf] Some road vehicle action 0 properties were loaded as the wrong type (int8,int16,int32) causing undefined results. (like cargo types being wrong) (2474) -- Fix: The console variable autoclean_unprotected was linked to the variable _network_autoclean_protected (2498) -- Fix: Old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped (2512) -- Fix: Using the mouse wheel could lead to a crash if mouse was not over a widget (2530) -- Fix: blinking 'lock' gfx in multiplayer games (2548) -- Fix: Remove original train pathfinder. Enhanced old pathfinder. (2553) -- Fix: Spaces in the path to the MIDI files caused the win32 MIDI player to fail (2563) -- Fix: set server map name to the loaded name of the game/scenario (2610) -- Fix: Improve the old pathfinder. Changed it to A* instead of Dijkstra. Benchmark shows that NTP is now around 10x faster than NPF (2635) -- Fix: Correctly save and load company_value, it's 64 bits wide, not 32 bits (2684) -- Fix: Volume control works now for the DirectMusic MIDI backend (2712) -- Fix: Change the fence algorithm so it removes fences when no farm tile is adjacent (2739) -- Fix: Tree tiles above the snow line got redrawn disproportionately often (2750) -- Fix: Depots could build trains of the wrong track type (2764) -- Fix: Sort the directories in the scenarion/savegame list (2860) -- Fix: On OS/2 show the trailing \ if the current directory is a root directory (2860) -- Fix: Return a proper version number, when testing the TTDPatch version in the SkipIf action (2862) -- Fix: Change the way NewGRFs are loaded, this saves quite some sprite slots - about 2000 for DBSetXL for example (2868) -- Fix: Several format string vulnerabilities and buffer overflows in the network code (2899) -- Fix: fixed issue where autorenewed vehicles didn't get all stats updated (2912) -- Fix: Exit the child of the extmidi backend with _exit() instead of exit(), because we don't want any atexit handlers - especially flushing output streams - to run, if exec() fails (2938) -- Fix: Server crash with "say"-command (2950) -- Fix: Fix win32 midi volume level control which didn't work (2960) -- Fix: [OSX] quitting the game no longer leaves a process behind that eats all the CPU power (3281) -- Fix: Fix for [ 1216203 ] UFO-broken waypoint (2961) -- Fix: [newgrf] Include missing grf feature canal -- Fix: [newgrf] Add bounds checking to VehicleChangeInfo for vehicles -- Fix: [newgrf] Wagon speed limits don't apply for wagons with livery overrides -- Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables (2976) -- Fix: restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (2987) -- Fix: [newgrf] Some GRF files don't specify a name or description, in which case the Action 8 is 8 bytes, not 9 (3005) -- Fix: The finnish markka was never abbreviated with capital letters (3021) -- Fix: Improve handling of non-existent sprite sets (3044) -- Fix: Don't attempt to map and empty sprite group to a vehicle (3045) -- Fix: Fixed typo and hang for BeOS Networking (3053) -- Fix: On Win98 and lower when you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files (3056) -- Fix: Complete rewrite of autoreplace; multiheaded train engines are replaced correctly (3081) -- Fix: A new train is now made if the front unit is an engine and the former front engine is moved away (3144) -- Fix: There are only 2 possible directions for ship depots, not 4 (3199) -- Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early (3201) -- Fix: Don't lower land on tunnel, even with diag tracks on it (3228) -- Fix: Crash when making a screenshotin the main menu (3235) -- Fix: Crash when starting a scenarion via 'New Game' fails (3235) -- Fix: Determine clicked status of sticky icon from window flags rather than the widget click state (3247) -- Fix: Graphical glitch with autorail tool on a certain tile-types (3254) -- Fix: Center the X of the window close button (3302) -- Fix: [newgrf] Unload engine names before loading grf files (3316) -- Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received (3322) -- Fix: Build failed if SDL is built without pthread support (3326) -- Fix: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possib le network desyncs (3352) -- Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle (3367) -- Fix: Out-of-bounds array access when road vehicles overtook in a curve caused desyncs (3371) -- Fix: Update signal states when building or removing rail station blocks (3372) -- Fix: Don't allow trains to get bigger than 100 via drag and drop (3374) -- Fix: Don't reset date in the scenario editor when pressing RandomLand (3376) -- Fix: [newgrf] Running cost should be halved for dual head vehicles (3384) -- Fix: No fence was placed when placing fences and the neighbouring tile is a rail configuration which permits a fence but has a signal (3389) -- Fix: [newgrf] Ignore non-climate dependent cargo types (3394) -- Fix: [newgrf] Only add a random number of days to an engine's base introduction date if that date is not 0 (3410) -- Fix: When changing the server password via the console, actually set the password as well as flag whether it is required (3411) -- Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece (3413) -- Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator (3414) -- Fix: Disable the clone and refit buttons in the train view when viewing another player's vehicles, or as a spectator (3415) -- Fix: Disallow building an oil rig above sea level (3416) -- Fix: When removing a town-owned tunnel the player's rating was not reduced (3418) -- Fix: (Possible) game crash on removing track/road under bridge if a vehicle was on the track/road under the bridge and the track/road sloped (3419) -- Fix: [newgrf] Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf) (3424) -- Fix: Incorrect validating of tree-planting command which can allow a buffer-overflow (3446) -- Fix: [newgrf] When changing the sprite ID of a vehicle, if it is not FD (custom graphics), the value needs to changed from a 16bit array offset to an array index. (fixes tropicstw.grf) (3449) -- Fix: You couldn't remove an item from a list-type of config ingame from the configuration file (3475) -- Fix: [newgrf] Always reinitialize the ttdpatch flags as patch settings may have changed (3486) -- Fix: Price for demolishing a bridge was dependent on orientation and map size (3487) +- Feature: [NewGRF] Implement varaction2 property 0x41 and 0xDA (r2361) +- Feature: Giving server_ip a value of 'all' will make the server listen on any interface (r2374) +- Feature: Shortcut CTRL + U that clears the current input-box (r2385) +- Feature: [NewGRF] Implement the mechanism for handling NewGRF callbacks (r2389) +- Feature: [NewGRF] Implement the 'refit capacity' callback (r2389) +- Feature: Saving games happen in a seperate thread (r2391) +- Feature: [NewGRF] Implement powered wagons, and the callback that goes with it (r2414) +- Feature: [NewGRF] Implement shorter train vehicles (r2428) +- Feature: New display option: 'transparent station signs' (r2438) +- Feature: You can now give transfer order to set up feeder systems (r2441) +- Feature: Removing tracks with the 'remove' tool, automatically removes signals on the tracks (r2469) +- Feature: [localisation] Allow changing the order of parameters in translated strings (r2573) +- Feature: [localisation] New way to specify plural forms (r2592) +- Feature: [localisation] Support genders (r2594) +- Feature: [localisation] Support cases (r2597) +- Feature: Add support for truncating strings to a given (pixel) length (r2607) +- Feature: Overhaul DirectMusic MIDI backend, remove "experimental" status (r2712) +- Feature: Change the driver probing algorithm: Use the first music/sound/video which succeeds initialising instead of bailing out after the first. No need to specify -snull if no soundcard is present anymore (r2728) +- Feature: The Main Toolbar Dropdown Menu can now display disabled items (r2734) +- Feature: Clone vehicles (r2764) +- Feature: When starting without a config file determine the language on basis of the current locale (r2777) +- Feature: [NewGRF] Add support for "extended bytes" (r2872) +- Feature: [localisation] Major step twoards ISO-8859-15: Implement missing characters (r2879) +- Feature: Implement the console command rm to remove savegames (r2941) +- Feature: Danish town names (r2957) +- Feature: Menu option to toggle console (r2958) +- Feature: Calculate proportions of non-square giant screenshot correctly (r2963) +- Feature: [NewGRF] Implement current set of action D (ParamSet) operations (r2968) +- Feature: [NewGRF] Show a wagon's speed limit in purchase list (r2969) +- Feature: [NewGRF] Support loading VarAction2 parameter for variables 0x60-0x7F (r2971) +- Feature: [NewGRF] Add patch option for wagon speed limits (r2982) +- Feature: [NewGRF] Support loading of bridge attributes and tables from GRF (r3004) +- Feature: Native Support for Win64 (r3008) +- Feature: OSX now uses quicktime to play midi files (r3022) +- Feature: [OSX] Command+Q now works in main menu (r3027) +- Feature: Allow unbanning players based on banlist-id (as well as IP) (r3067) +- Feature: 'status' and 'clients' now show the IP of the players (r3067) +- Feature: Make it possible to create a screenshot from the console that is both big and has no console, or any combination of (r3068) +- Feature: [NewGRF] Add support for rail vehicle weight greater than 255 tons (r3071) +- Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (r3096) +- Feature: Turkish translation (r3120) +- Feature: [NewGRF] Support positioning of rail vehicle visual effects (r3132) +- Feature: [NewGRF] Support for articulated rail vehicles (r3139) +- Feature: [NewGRF] Add support for cargo refitting specification by cargo classes (r3148) +- Feature: [NewGRF] Action 7/9 new value : is it TTDPatch or OpenTTD? (r3152) +- Feature: Drag and drop rocky areas in scenario editor (r3153) +- Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars (r3157) +- Feature: Right-Click-Scrolling optionally moves in the opposite direction (r3222) +- Feature: Native cocoa sound and video drivers for OSX (r3281) +- Feature: [NewGRF] Allow train running cost class to differ from engine class (r3388) +- Feature: Kick and ban now with IP numbers (r3407) +- Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console (r3427) +- Feature: Allow the network game list to be sorted (by name/clients/compatibility ascending/descending) (r3441) +- Feature: Make it possible to ban offline clients (r3469) +- Fix: The refit window now shows the correct refit options (r2365) +- Fix: Refitting to a cargo which is already carried by some vehicles takes their capacities into account for display (r2365) +- Fix: Add 'multihead' TTDPatch option to OpenTTD NewGRF flags-emulation (r2368) +- Fix: Make install tried to install scenarios in the (non-existing) personal dir when USE_HOMEDIR is specified (r2371) +- Fix: [console] update the example scripts in the scripts/ directory to reflect the new console functionality (r2372) +- Fix: [console] any line starting with a '#' is a comment so ignore it (r2372) +- Fix: [console] The special variables whose value can only be set by a custom process should, also print out their newly set value there (r2372) +- Fix: [NewGRF] Ignore action 0 prop 0x20 (air drag) (r2377) +- Fix: [NewGRF] Further property stubs, help prevents subsequent incorrect reading of NewGRF data (r2378) +- Fix: Build year for mail compartment of planes was not set correctly, affected station ratings (r2380) +- Fix: Endgame window on easy difficulty resulted in infinite loop (r2381) +- Fix: Check the airport type when building an airport (r2382) +- Fix: Monkey-testing turned up some command crashes (r2383) +- Fix: Check selling land and setting player colour. Also an extra map-bounds check for terraforming (r2384) +- Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot (r2388) +- Fix: [NewGRF] Load power for dual-headed engines correctly (r2400) +- Fix: [NewGRF] When resolving callbacks, dont ignore wagon overrides (r2410) +- Fix: Station ratings are not affected by speed limits from realistic acceleration anymore (r2411) +- Fix: Building vehicles without depot crashed the game (r2412) +- Fix: Certain resolutions caused a crash when minimap was partly dragged outside the game window (r2424) +- Fix: Deleting canals under bridges removed bridges first in certain configurations (r2436) +- Fix: [NPF] Vehicles try to drive into a tunnel entrance from above (r2471) +- Fix: [NewGRF] Some road vehicle action 0 properties were loaded as the wrong type (int8,int16,int32) causing undefined results. (like cargo types being wrong) (r2474) +- Fix: The console variable autoclean_unprotected was linked to the variable _network_autoclean_protected (r2498) +- Fix: Old bug in the PCX writer: The first pixel column contained garbage, the picture was shifted one to the right, and the last column was dropped (r2512) +- Fix: Using the mouse wheel could lead to a crash if mouse was not over a widget (r2530) +- Fix: Blinking 'lock' gfx in multiplayer games (r2548) +- Fix: Remove original train pathfinder. Enhanced old pathfinder (r2553) +- Fix: Spaces in the path to the MIDI files caused the win32 MIDI player to fail (r2563) +- Fix: Set server map name to the loaded name of the game/scenario (r2610) +- Fix: Improve the old pathfinder. Changed it to A* instead of Dijkstra. Benchmark shows that NTP is now around 10x faster than NPF (r2635) +- Fix: Correctly save and load company_value, it's 64 bits wide, not 32 bits (r2684) +- Fix: Volume control works now for the DirectMusic MIDI backend (r2712) +- Fix: Change the fence algorithm so it removes fences when no farm tile is adjacent (r2739) +- Fix: Tree tiles above the snow line got redrawn disproportionately often (r2750) +- Fix: Depots could build trains of the wrong track type (r2764) +- Fix: Sort the directories in the scenarion/savegame list (r2860) +- Fix: On OS/2 show the trailing \ if the current directory is a root directory (r2860) +- Fix: Return a proper version number, when testing the TTDPatch version in the SkipIf action (r2862) +- Fix: Change the way NewGRFs are loaded, this saves quite some sprite slots - about 2000 for DBSetXL for example (r2868) +- Fix: Several format string vulnerabilities and buffer overflows in the network code (r2899) +- Fix: fixed issue where autorenewed vehicles did not get all stats updated (r2912) +- Fix: Exit the child of the extmidi backend with _exit() instead of exit(), because we do not want any atexit handlers - especially flushing output streams - to run, if exec() fails (r2938) +- Fix: Server crash with "say"-command (r2950) +- Fix: Fix win32 midi volume level control which did not work (r2960) +- Fix: [OSX] quitting the game no longer leaves a process behind that eats all the CPU power (r3281) +- Fix: Fix for UFO-broken waypoint [SF#1216203] (r2961) +- Fix: [NewGRF] Include missing grf feature canal +- Fix: [NewGRF] Add bounds checking to VehicleChangeInfo for vehicles +- Fix: [NewGRF] Wagon speed limits do not apply for wagons with livery overrides +- Fix: Align settings pool items to the size of void* to fix bus errors on 64bit architectures which require aligned variables (r2976) +- Fix: Restart_game_date is an UINT16, not a BYTE. Now setting the game restart year via the console should work (r2987) +- Fix: [NewGRF] Some GRF files do not specify a name or description, in which case the Action 8 is 8 bytes, not 9 (r3005) +- Fix: The finnish markka was never abbreviated with capital letters (r3021) +- Fix: Improve handling of non-existent sprite sets (r3044) +- Fix: Do not attempt to map and empty sprite group to a vehicle (r3045) +- Fix: Fixed typo and hang for BeOS Networking (r3053) +- Fix: On Win98 and lower when you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and could not change any directories or see any files (r3056) +- Fix: Complete rewrite of autoreplace; multiheaded train engines are replaced correctly (r3081) +- Fix: A new train is now made if the front unit is an engine and the former front engine is moved away (r3144) +- Fix: There are only 2 possible directions for ship depots, not 4 (r3199) +- Fix: Allow bribing up to the maximum rating for bribing, do not disable this option at some arbitrary value early (r3201) +- Fix: Do not lower land on tunnel, even with diag tracks on it (r3228) +- Fix: Crash when making a screenshotin the main menu (r3235) +- Fix: Crash when starting a scenarion via 'New Game' fails (r3235) +- Fix: Determine clicked status of sticky icon from window flags rather than the widget click state (r3247) +- Fix: Graphical glitch with autorail tool on a certain tile-types (r3254) +- Fix: Center the X of the window close button (r3302) +- Fix: [NewGRF] Unload engine names before loading grf files (r3316) +- Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received (r3322) +- Fix: Build failed if SDL is built without pthread support (r3326) +- Fix: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possib le network desyncs (r3352) +- Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle (r3367) +- Fix: Out-of-bounds array access when road vehicles overtook in a curve caused desyncs (r3371) +- Fix: Update signal states when building or removing rail station blocks (r3372) +- Fix: Do not allow trains to get bigger than 100 via drag and drop (r3374) +- Fix: Do not reset date in the scenario editor when pressing RandomLand (r3376) +- Fix: [NewGRF] Running cost should be halved for dual head vehicles (r3384) +- Fix: No fence was placed when placing fences and the neighbouring tile is a rail configuration which permits a fence but has a signal (r3389) +- Fix: [NewGRF] Ignore non-climate dependent cargo types (r3394) +- Fix: [NewGRF] Only add a random number of days to an engine's base introduction date if that date is not 0 (r3410) +- Fix: When changing the server password via the console, actually set the password as well as flag whether it is required (r3411) +- Fix: Under certain conditions placing a road tile parallel under a bridge would, instead of failing, succeed and place a perpendicular piece (r3413) +- Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator (r3414) +- Fix: Disable the clone and refit buttons in the train view when viewing another player's vehicles, or as a spectator (r3415) +- Fix: Disallow building an oil rig above sea level (r3416) +- Fix: When removing a town-owned tunnel the player's rating was not reduced (r3418) +- Fix: (Possible) game crash on removing track/road under bridge if a vehicle was on the track/road under the bridge and the track/road sloped (r3419) +- Fix: [NewGRF] Only power should decide whether a rail vehicle is an engine or a wagon. (fixes SHIKI 810 in jpsetw.grf) (r3424) +- Fix: Incorrect validating of tree-planting command which can allow a buffer-overflow (r3446) +- Fix: [NewGRF] When changing the sprite ID of a vehicle, if it is not FD (custom graphics), the value needs to changed from a 16bit array offset to an array index. (fixes tropicstw.grf) (r3449) +- Fix: You could not remove an item from a list-type of config ingame from the configuration file (r3475) +- Fix: [NewGRF] Always reinitialize the ttdpatch flags as patch settings may have changed (r3486) +- Fix: Price for demolishing a bridge was dependent on orientation and map size (r3487) 0.4.0.1 (2005-05-21) @@ -1687,11 +1687,11 @@ - Fix: Link error while compiling as dedicated server - Fix: Do not execute empty commands - Fix: Make OpenTTD icon look good on Win2K and earlier -- Fix: NetworkUDPRemoveAdvertise wasn't completely correct -- Fix: Signs in multiplayer didn't work +- Fix: NetworkUDPRemoveAdvertise was not completely correct +- Fix: Signs in multiplayer did not work - Fix: Dedicated server desyncs -- Fix: [ 1197216 ] Error: !invalid string id 0 in GetString, dedicated server endgame crash -- Fix: Don't allow things to be renamed to nothing +- Fix: Error: !invalid string id 0 in GetString, dedicated server endgame crash [SF#1197216] +- Fix: Do not allow things to be renamed to nothing - Fix: Windows installer deletes spritecache files on uninstall - Fix: Depot window did not get redrawn when a non-train-engine was sold - Fix: Do not scroll the game with the arrow keys when the chatbox is open @@ -1703,218 +1703,206 @@ ------------------------------------------------------------------------ - Feature: Bigger maps. Enjoy playing up to 2028x2048 (64 times as big as you were used to!) - Feature: New realistic acceleration; should be much better. Inlcudes gigger penalty on narrow curves and speedlimits in depots/stations -- Feature: It is now possible to build multiple road stations (up to 8) on a single station (multibus). +- Feature: It is now possible to build multiple road stations (up to 8) on a single station - Feature: New PathFinder (NPF). Support for train/road and ship based on A*. No more braindead pathfinding - Feature: Dynamic towns/industries/stations/vehicles/signs/orders/everything, up to 64K - Feature: Brand new OldLoader so OpenTTD is TTD(Patch) compatible again. Also endian safe -- Feature: Even better newgrf support, except for callbacks, everything works (ok, almost) +- Feature: Even better NewGRF support, except for callbacks, everything works (ok, almost) - Feature: Improved multiplayer. More console options, less desyncs and more fun -- Feature: Protected OpenTTD from interference of hacked clients, so it should be safe to play again. -- Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type -- Feature: [ 1107690 ] Resizable orders GUI -- Feature: [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu -- Feature: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr) -- Feature: Complete rework of console and new commands like ls, save, load, help, etc. +- Feature: Protected OpenTTD from interference of hacked clients, so it should be safe to play again +- Feature: Saving vehicle sorting criteria for each vehicle type [SF#1093261] +- Feature: Resizable orders GUI [SF#1107690] +- Feature: Focus keyboard on input-box in Multiplayer Menu [SF#1166978] +- Feature: terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr) [SF#1174313] +- Feature: Complete rework of console and new commands like ls, save, load, help, etc - Feature: Signs are shown in the colour of the player who created them - Feature: Add cheat option to set production of raw-material industries in game - Feature: Replace trian GUI remembers railtype selected from the dropdown menu - Feature: Improved Autoreplace - Feature: many more smaller features :D -- Fix: [ 1108618 ] A wrong error message was displayed when trying to -- Fix: [ 1110407 ] Game does not crash any more when a newgrf file doesn't exist -- Fix: [ 1112469 ] Clearing land for free by reallocating HQ -- Fix: [ 1112469 ] Clearing land for free by reallocating HQ -- Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled. -- Fix: [ 1113399 ] Game no longer crashes when right-clicking a disabled Full Load button -- Fix: [ 1114100 ] Dedicated server boots again -- Fix: [ 1114950 ] Game crashed sometimes when there were no industries in the map -- Fix: [ 1115200 ] In the main menu, when starting a new game while the load game dialog is open, openttd asserts. -- Fix: [ 1117538 ] non-stop orders are no longer accidently skipped -- Fix: [ 1116619 ] Generate the correct smoke type for diesel trains -- Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit -- Fix: [ 1109400 ] Better test if a string actually contains any console command -- Fix: [ 1108637 ] 'Play scenario' now loads game options and difficulty, 'Load game' starts game with user-selected values. -- Fix: [ 1143587 ] carriages of newgrfs can be refitted again -- Fix: [ 1117730 ] Production values of temperate-climate banks can now be altered -- Fix: [ 1118810 ] openttd: ship_cmd.c:642 ... Assertion failed. Mapwrap fixed in ship_cmd.c (was implicitely ok before biggermaps). -- Fix: [ 1117327 ] Assertion error on kick. When a company is cleaned all its windows need to be closed. For global vehicle lists, the no-staiton index of -1 was not taken into account -- Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows) -- Fix: [ 1149403 ] Signals dissaper after typing text and pressing enter!. Signs in Scenario Editor have no owner so ignore that. -- Fix: [ 1149766 ] Single tile Bridge in Volcano City scenario. Some bridges still had the old single-tile bridge bug that was caused by improper town growth in combination with DC_AUTO. Fixed the scenario. -- Fix: [ 1119147 ] Stop startup memory corruption crash using optimized MSVC6. MSVC6 workaround as it's too stupid again for its own good -- Fix: [ 1101874 ] Dedicated server now accepts '-g' (load game) as param -- Fix: [ 1155696 ] Crash with german umlauts in station names. -- Fix: [ 1158618 ] Segmentation fault when loading savegame, out of bounds array check. -- Fix: [ 1149487 ] Autosave ignoring settings -- Fix: [ 1024703 ] Infinite access for A:\ (win32). Patch [1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines. -- Fix: [ 1095110 ] Create Lake and draggable Create Desert tools -- Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order -- Fix: [ 1146215 ] Engine power not updated w/auto replace" autoreplace now forces an update of the cache. -- Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only -- Fix: [ 1179892 ] click & drag removal of road assertion fail. -- Fix: [ 1174237 ] Max loan always in euros, use _opt_ptr instead of _opt -- Fix: [ 1184201 ] AI orders its vehicles to a competitor's truck stop. -- Fix: [ 1188986 ] Song in main menu screen should loop when it ends. -- Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one. -- Fix: [ 1190625 ] Changing mapsize crashes game with highlighting. -- Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev) -- Fix: [ 1202115 ] Clicking shipslist on bouy asserts GetPlayer(). -- Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button -- Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit signal -- Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code -- Fix: [newgrf] rotors of custom helicopters are displayed correctly in the hangar window +- Fix: A wrong error message was displayed when trying to [SF#1108618] +- Fix: Game does not crash any more when a NewGRF file does not exist [SF#1110407] +- Fix: Clearing land for free by reallocating HQ [SF#1112469] +- Fix: Clearing land for free by reallocating HQ [SF#1112469] +- Fix: crash when accessing hi-scores in editor, it is now disabled [SF#1113037] +- Fix: Game no longer crashes when right-clicking a disabled Full Load button [SF#1113399] +- Fix: Dedicated server boots again [SF#1114100] +- Fix: Game crashed sometimes when there were no industries in the map [SF#1114950] +- Fix: In the main menu, when starting a new game while the load game dialog is open, openttd asserts [SF#1115200] +- Fix: non-stop orders are no longer accidently skipped [SF#1117538] +- Fix: Generate the correct smoke type for diesel trains [SF#1116619] +- Fix: Max passengers / mail variables are now 32 bit [SF#1119308] +- Fix: Better test if a string actually contains any console command [SF#1109400] +- Fix: 'Play scenario' now loads game options and difficulty, 'Load game' starts game with user-selected values [SF#1108637] +- Fix: carriages of NewGRFs can be refitted again [SF#1143587] +- Fix: Production values of temperate-climate banks can now be altered [SF#1117730] +- Fix: openttd: ship_cmd.c:642 ... Assertion failed. Mapwrap fixed in ship_cmd.c (was implicitely ok before biggermaps) [SF#1118810] +- Fix: Assertion error on kick. When a company is cleaned all its windows need to be closed. For global vehicle lists, the no-staiton index of -1 was not taken into account [SF#1117327] +- Fix: Speeding up when pressing ALT+TAB (Windows) [SF#1114261] +- Fix: Signals dissaper after typing text and pressing enter!. Signs in Scenario Editor have no owner so ignore that [SF#1149403] +- Fix: Single tile Bridge in Volcano City scenario. Some bridges still had the old single-tile bridge bug that was caused by improper town growth in combination with DC_AUTO. Fixed the scenario [SF#1149766] +- Fix: Stop startup memory corruption crash using optimized MSVC6. MSVC6 workaround as it's too stupid again for its own good [SF#1119147] +- Fix: Dedicated server now accepts '-g' (load game) as param [SF#1101874] +- Fix: Crash with german umlauts in station names [SF#1155696] +- Fix: Segmentation fault when loading savegame, out of bounds array check [SF#1158618] +- Fix: Autosave ignoring settings [SF#1149487] +- Fix: Infinite access for A:\ (win32). Patch [1171208]. Only requery drive(s) if the user changes a directory, also surpress the OS error box that pops up on some windows machines [SF#1024703] +- Fix: Create Lake and draggable Create Desert tools [SF#1095110] +- Fix: Trains "Go to depot" button: click twice skip to next order [SF#1172878] +- Fix: Engine power not updated w/auto replace" autoreplace now forces an update of the cache [SF#1146215] +- Fix: Path displaying as "C:\\" in saveload window win32-only [SF#1173690] +- Fix: Click & drag removal of road assertion fail [SF#1179892] +- Fix: Max loan always in euros, use _opt_ptr instead of _opt [SF#1174237] +- Fix: AI orders its vehicles to a competitor's truck stop [SF#1184201] +- Fix: Song in main menu screen should loop when it ends [SF#1188986] +- Fix: Non-existing sprite #5125 (presignal). The DOS grf file trgi.grf has 6 less sprites than the windows one [SF#1188777] +- Fix: Changing mapsize crashes game with highlighting [SF#1190625] +- Fix: [NPF] Trains ignoring their railtype (mono, maglev) [SF#1190896, SF#1184378] +- Fix: Clicking shipslist on bouy asserts GetPlayer() [SF#1202115] +- Fix: No HQ present for competitor, disable 'View HQ' button [SF#1187613] +- Fix: Pre-signal stays red when there is only a single exit signal [SF#1193048] +- Fix: Train in tunnel is not properly detected by signal code [SF#1185176] +- Fix: [NewGRF] rotors of custom helicopters are displayed correctly in the hangar window - Fix: Scenario Editor now handles human-made roads better (try to build a city layout before placing the city, finally that works very nice) -- Fix: [Newgrf] helicopters are correctly recognized -- Fix: [autoreplace] made sure that planes only show planes in replace GUI and helicopters only show helicopters -- Fix: (Work around?) crash when generating tropical maps -- Fix: [autoreplace] Cheaters can no longer exploit autoreplace to get vehicles, that's not invented yet -- Fix: [autoreplace] Fixed a stupid bug introduced in r1687, that made a crash if anybody tried to autoreplace anything but an aircraft -- Fix: expand railroad stations beyond maximum spread -- Fix: [autoreplace] fixed a typo that could prevent autoreplaced aircraft from automatically go to a hangar +- Fix: [NewGRF] helicopters are correctly recognized +- Fix: [Autoreplace] made sure that planes only show planes in replace GUI and helicopters only show helicopters +- Fix: Crash when generating tropical maps +- Fix: [Autoreplace] Cheaters can no longer exploit autoreplace to get vehicles, that's not invented yet +- Fix: [Autoreplace] Fixed a stupid bug introduced in r1687, that made a crash if anybody tried to autoreplace anything but an aircraft +- Fix: Expand railroad stations beyond maximum spread +- Fix: [Autoreplace] fixed a typo that could prevent autoreplaced aircraft from automatically go to a hangar - Fix: Hacked clients can no longer be used to build vehicles that are not available yet - Fix: Minimum profit of vehicles was calculated wrong for Performance Rating -- Fix: no longer a station where you only unload is bad for your town-rating -- Fix: Crash in scenario-editor with terraforming out-of-map bounds. -- Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. +- Fix: No longer a station where you only unload is bad for your town-rating +- Fix: Crash in scenario-editor with terraforming out-of-map bounds +- Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid - Fix: Scrolling with the arrow keys is now smooth and it now also scrolls exactly in tile direction if e.g. up and left are pressed -- Fix: many more fixes but I am too tired to list them all 0.3.6 (2005-01-24) ------------------------------------------------------------------------ -- Feature: resizable windows. All useful windows are already made resizable. +- Feature: resizable windows. All useful windows are already made resizable - Feature: highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu) - Feature: endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while - Feature: Visually enhanced autorail placing - When using the autorail tool, the rail pieces which are going to be build are highlighted. - If a piece is shown in red, this indicates that the slope/rail combination is impossible. It does not tell you if - the rail line construction might not be possible because of other obstacles, e.g. houses or water. - Feature: Autoreplace Vehicles (accessible from the vehicle lists) - This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once - ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the - vehicle overview windows (Bjarni) -- Feature: A counter to tell how many engines you have of each type to the autoreplace vehicle windows (Bjarni) +- Feature: A counter to tell how many engines you have of each type to the autoreplace vehicle windows - Feature: A display for the total map population to the town display -- Feature: [network] RCon (Remote Connection). - A server can set: 'set rcon_pw ' to enable rcon - A client can now do: 'rcon ""' - !!Warning!!: do not give your rcon password to people you do not thrust! +- Feature: [network] RCon (Remote console) - Feature: hotkeys for dock and airport toolbar (see http://wiki.openttd.org/index.php/Hotkeys) -- Feature: [Network] banning system (mostly tnx to guru3) A server can ban people via ClientList using 'ban', 'unban', 'banlist'. +- Feature: [Network] banning system (mostly tnx to guru3) A server can ban people via ClientList using 'ban', 'unban', 'banlist' - Feature: [Network] server can now pause and unpause a game through the console. Use 'pause' and 'unpause' - Feature: [OS/2] OS/2 support is now finished (Fixes for networking, file selection, keyboard input, plus many other minor issues) - Feature: [SDL] Show revision number in window title - Feature: [Unix] Check which gcc version is present and only set available compiler flags -- Feature: [Windows] CTRL+V (Paste) now works on all editboxes. This includes 'Add Server', chat, etc. +- Feature: [Windows] CTRL+V (Paste) now works on all editboxes. This includes 'Add Server', chat, etc - Feature: [Windows] dedicated server is now functioning correctly - Feature: Addded keyboard shortcuts for the order window -- Feature: Aircraft refit options have been restricted to "sane" values. +- Feature: Aircraft refit options have been restricted to "sane" values - Feature: allows setting the production values of the rawmaterial producing industries in the editor -- Feature: console support for loading maps. Use 'load', 'list_files' and 'goto_dir' to navigate and load games. +- Feature: console support for loading maps. Use 'load', 'list_files' and 'goto_dir' to navigate and load games - Feature: Display server port in the multiplayer game info window - Feature: dynamite in landscaping toolbar (hotkey 'D') - Feature: Improved Network Lobby GUI with a green dot if company income is positive (else red dot) and lock icon if company is password protected - Feature: Make ottd compile on Zeta -- Feature: MD5 hash check for TTD files (The original TTD files are now checked with a MD5 sum to determine which version of the grf files is used and to warn about possible file corruptions. Thanks to ledow for the original patch) +- Feature: MD5 hash check for TTD files - Feature: New companies receive a 5-year protection period against buying-up -- Feature: norwegian townnames (Simen Graaten) +- Feature: norwegian townnames - Feature: Order Checking is only execute for ONE vehicle in an order-share system - Feature: Passengers aircraft now ignore the amount of mail for "full load any" options - Feature: place multiple accepting industies nearby in the editor mode if the appropriate patches are set - Feature: population in label of the town (patch setting) -- Feature: scrolling credits list (in alphabetical order) -- Feature: Train window now shows the number of vehicles per row (mpetrov) -- Feature: [ 1039061 ] Swiss town-names (vulvulune) -- Feature: [ 1090950 ] Adding 16:10 resolutions for mainly laptops (doode) -- Feature: [ 1098254 ] (dis)Allow Shares. Add patch options to allow buying/selling of shares (Hackykid) -- Fix: [ 1031451 ] Catchment area shows when buying sign -- Fix: [ 1040119 ] Flood and wagons in depot -- Fix: [ 1050990 ] Buying trains sometimes accounted for incorrectly. -- Fix: [ 1084074 ] Delayed news messages -- Fix: [ 1090495 ] Slopes under high bridges weren't flooded -- Fix: [ 1092473 ] In scenario editor, when trees are placed randomly, they are no longer placed on farmland -- Fix: [ 1092661 ] On create, the scrollbar of the server-list was not updated -- Fix: [ 1092707 ] placing rocks in scenario editor. You can place rocks on trees and vice versa -- Fix: [ 1093200 ] Drive side in new games. Setting the driver side is possible during the game until someone buys road vehicles. In networked games only the server can change it. -- Fix: [ 1093466 ] no more glitches with many maps in the scenario list when creating server -- Fix: [ 1093485 ] Dissappearing rocks in Scenario Editor -- Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode -- Fix: [ 1095020 ] When all stations in an aircraft's order list are demolished, the plane eventually crashes (running out of fuel) -- Fix: [ 1095143 ] Servers list now also saves the port -- Fix: [ 1098553 ] Crash when all vehicles from a vehicles per station list had been removed -- Fix: [ 1099101 ] starting year patch goes out of range. Clamped year between 1920-2090 -- Fix: [ 1099225 ] Bug Fix - Vehicle Lists not updated at Acqusition (thx tamlin and mpetrov) -- Fix: [ 1099451 ] Game crashes after the click on Rename (see also Bug 10992). There was no check for non-selected engine -- Fix: [ 1100736 ] wrong tooltip for place desert button -- Fix: [ 1100767 ] fast forward in main menu -- Fix: [ 1101179 ] Crash if generating land while industry window is open. This also happened for towns and the land information window -- Fix: [ 1101906 ] Configure Patches window text overflow -- Fix: [ 1101963 ] console in dedicated server -- Fix: [ 1102275 ] Game crashed when clicking "new face" or "company color" twice -- Fix: [ 1102776 ], [ 1099535 ] Vehicle lists are now redrawn when a vehicle arrives in a depot. Station-specific vehicle lists are now redrawn daily as well (not only the master list) -- Fix: [ 1103113 ] font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts -- Fix: [ 1103187 ] Order Check messages are now validated before displayed -- Fix: [ 1103301 ] Railroad tracks on slopes weren't flooded -- Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle message anymore -- Fix: [ 110452 ] On horizontal/vertical tracks you are also charged for building/removing signals on the parallel track on the same tile. -- Fix: [ 1104969 ] Aircraft in hangar messages are now revalidated before display -- Fix: [ 1105112 ] Destroyed train locks crossings -- Fix: [ 1105281 ] upgrade rail fails when train under bridge -- Fix: [ 1105959 ] Trains don't think they're on a slope any more while they drive around in a tunnel -- Fix: [ 1105963 ] Buoys can now only be removed if no ship has it in their schedule. (This makes buoys more useable in multiplayer games again, as buoys can't be deleted by other players if they are used.) -- Fix: [ 1106354 ] Graph's keys get confused -- Fix: [ 1106930 ] placing signals with 2x1 drags is treated as placing a single signal -- Fix: [ 1107350 ] console ignoring return character occasionally. -- Fix: [ 1108008 ] Scenario creation bug; engines are of correct year when scenario is saved -- Fix: [ 1092474 ] little red box in scenario editor -- Fix: [ 1099197 ] scrolling through console sometimes crashed the whole game. -- Fix: [ 1099209 ] Catchment area with drag&drop stations +- Feature: scrolling credits list (in alphabetical order) +- Feature: Train window now shows the number of vehicles per row +- Feature: Swiss town-names [SF#1039061] +- Feature: Adding 16:10 resolutions for mainly laptops [SF#1090950] +- Feature: (dis)Allow Shares. Add patch options to allow buying/selling of shares [SF#1098254] +- Add: A brand new set of icons +- Change: AutoRenew is now a client-side patch instead of a game-side patch +- Change: Removed the 'close ALL windows' from the toolbar since shift+del does this +- Fix: Catchment area shows when buying sign [SF#1031451] +- Fix: Flood and wagons in depot [SF#1040119] +- Fix: Buying trains sometimes accounted for incorrectly [SF#1050990] +- Fix: Delayed news messages [SF#1084074] +- Fix: Slopes under high bridges were not flooded [SF#1090495] +- Fix: In scenario editor, when trees are placed randomly, they are no longer placed on farmland [SF#1092473] +- Fix: On create, the scrollbar of the server-list was not updated [SF#1092661] +- Fix: placing rocks in scenario editor. You can place rocks on trees and vice versa [SF#1092707] +- Fix: Drive side in new games. Setting the driver side is possible during the game until someone buys road vehicles. In networked games only the server can change it [SF#1093200] +- Fix: no more glitches with many maps in the scenario list when creating server [SF#1093466] +- Fix: Dissappearing rocks in Scenario Editor [SF#1093485] +- Fix: Toolbars accessible via keyboard in spectator mode [SF#1094092] +- Fix: When all stations in an aircraft's order list are demolished, the plane eventually crashes (running out of fuel) [SF#1095020] +- Fix: Servers list now also saves the port [SF#1095143] +- Fix: Crash when all vehicles from a vehicles per station list had been removed [SF#1098553] +- Fix: starting year patch goes out of range. Clamped year between 1920-2090 [SF#1099101] +- Fix: Bug Fix - Vehicle Lists not updated at Acqusition [SF#1099225] +- Fix: Game crashes after the click on Rename (see also Bug 10992). There was no check for non-selected engine [SF#1099451] +- Fix: wrong tooltip for place desert button [SF#1100736] +- Fix: fast forward in main menu [SF#1100767] +- Fix: Crash if generating land while industry window is open. This also happened for towns and the land information window [SF#1101179] +- Fix: Configure Patches window text overflow [SF#1101906] +- Fix: console in dedicated server [SF#1101963] +- Fix: Game crashed when clicking "new face" or "company color" twice [SF#1102275] +- Fix: Vehicle lists are now redrawn when a vehicle arrives in a depot. Station-specific vehicle lists are now redrawn daily as well (not only the master list) [SF#1099535, SF#1102776] +- Fix: font size changing. Dedicated server did not have code filtering, 'tab' could result in bigger fonts [SF#1103113] +- Fix: Order Check messages are now validated before displayed [SF#1103187] +- Fix: Railroad tracks on slopes were not flooded [SF#1103301] +- Fix: Crashed trains do not initiate the lost vehicle message anymore [SF#1104350] +- Fix: On horizontal/vertical tracks you are also charged for building/removing signals on the parallel track on the same tile [SF#110452] +- Fix: Aircraft in hangar messages are now revalidated before display [SF#1104969] +- Fix: Destroyed train locks crossings [SF#1105112] +- Fix: upgrade rail fails when train under bridge [SF#1105281] +- Fix: Trains do not think they're on a slope any more while they drive around in a tunnel [SF#1105959] +- Fix: Buoys can now only be removed if no ship has it in their schedule. (This makes buoys more useable in multiplayer games again, as buoys cannot be deleted by other players if they are used.) [SF#1105963] +- Fix: Graph's keys get confused [SF#1106354] +- Fix: placing signals with 2x1 drags is treated as placing a single signal [SF#1106930] +- Fix: console ignoring return character occasionally [SF#1107350] +- Fix: Scenario creation bug; engines are of correct year when scenario is saved [SF#1108008] +- Fix: little red box in scenario editor [SF#1092474] +- Fix: scrolling through console sometimes crashed the whole game [SF#1099197] +- Fix: Catchment area with drag&drop stations [SF#1099209] - Fix: [Network] 'kick 1' did crash dedicated servers -- Fix: [Network] A server no longer crashes when a client sends an invalid DoCommand, but drops the client instead. +- Fix: [Network] A server no longer crashes when a client sends an invalid DoCommand, but drops the client instead - Fix: [Network] Added packet protection. No longer a client or server -- Fix: [Network] Bug in bind system. Advertising failed on systems with more then 1 ip, and server_bind active to one of them. +- Fix: [Network] Bug in bind system. Advertising failed on systems with more then 1 ip, and server_bind active to one of them - Fix: [Network] Disabled 'money-cheat' (read: bug which could give people a lot of money) -- Fix: [SDL] now the binary never links to SDL if DEDICATED is set. +- Fix: [SDL] now the binary never links to SDL if DEDICATED is set - Fix: [Windows] somehow mousewheel was disabled on windows using SDL; reenabled again -- Fix: a modified client could try to replace a vehicle to an invalid engine ID and crash the server. +- Fix: a modified client could try to replace a vehicle to an invalid engine ID and crash the server - Fix: autoreplace vehicle lists are now redrawn when a new vehicle becomes available - Fix: Buy Vehicle GUI now shows HPs bigger than 32000 correctly - Fix: Console alias, load_game functionality and load fix -- Fix: correct error message for when trying to build a railroad station over a bus/truck/etc-station. +- Fix: correct error message for when trying to build a railroad station over a bus/truck/etc-station - Fix: Correct landscaping buttons in monorail and maglev toolbars - Fix: dedicated server also writes to log file if active - Fix: Desert-landscape does no longer crash - Fix: Expand town is a bit more agressive -- Fix: finally zooming in/out always works. +- Fix: finally zooming in/out always works - Fix: fixed chat-bug (that from a certain moment, nobody could talk) - Fix: fixed weight for double-head trains and with that the acceleration (now maglev lvl4 can reach their top speed, and are faster than lvl3) -- Fix: Full-Loading trains no longer get "lost" after a while (Hackykid) +- Fix: Full-Loading trains no longer get "lost" after a while - Fix: Graphs were not updated correctly when one graph with a certain selection was already open and another graph window was opened - Fix: in multiplayer clientlist can only be opened once - Fix: Loan does not count against the company value - Fix: nasty bug where one could build one station OVER the other - Fix: No crash when creating a game with New English town names any more -- Fix: now helicopters will use a hangar in schedule to be replaced in, even if they are only set to service there. Since helicopters are serviced at helipads, they will only go there if they needs to be replaced or renewed. They will also use a hangar in an airport in the schedule if needed. (Bjarni) +- Fix: now helicopters will use a hangar in schedule to be replaced in, even if they are only set to service there. Since helicopters are serviced at helipads, they will only go there if they needs to be replaced or renewed. They will also use a hangar in an airport in the schedule if needed - Fix: only a server can rename a town in a MP game -- Fix: really old maps do load again (Darkvater / TrueLight) +- Fix: really old maps do load again - Fix: Refit engine button is now disabled when cargo capacity equals zero - Fix: server issue where some company names were wrong - Fix: Ship Vehicle Lists are now redrawn correctly -- Fix: signal stays red if a track is removed (Darkvater / Tron / TrueLight) +- Fix: signal stays red if a track is removed - Fix: solve AI related order-problem - Fix: starting openttd with -g now acts normal - Fix: The cost for an autorenew was not always send to the right player ;) - Fix: Autorenewing multiheaded train engines now costs the correct amount. Used to be twice the correct price -- Fix: the scrollbar in the network gui (server list) now updates when scrolling (HackyKid) -- Fix: Train crashes should no longer desync the game. +- Fix: the scrollbar in the network gui (server list) now updates when scrolling +- Fix: Train crashes should no longer desync the game - Fix: When deleting an order, the next pointer was not cleared, resulting in some unusual behavoir from time to time - Fix: You can now also delete automatically found servers by pressing "del" - Fix: You should no longer be able to delete bridges on any type of underground when there is a vehicle on it -- Add: A brand new set of icons. -- Change: AutoRenew is now a client-side patch instead of a game-side patch -- Change: Removed the 'close ALL windows' from the toolbar since shift+del does this. -- Language: Updated all languages -- Fix: Many more things.... 0.3.5 (2004-12-24) @@ -1930,14 +1918,13 @@ - Feature: Per-station vehicle lists - Feature: More realistically sized catchment areas - Feature: Sticky windows -- Feature: Even better support for newgrf-files +- Feature: Even better support for NewGRF-files - Feature: Implement improved vehicle loading algorithm - Feature: Even more advanced console - Feature: Game compiles under BEOS_SERVER - Feature: Game compiles under OS/2 (no network-support) - Feature: OpenTTD runs with the grf files of the DOS version - Feature: [Big Endian computers, which are mac and MorphOS]: are able to load savegames by TTD(Patch) -- Feature: Many more new things... - Add: 'l' openes the landscaping toolbar globally - Add: Make the town sometimes build streets on slopes - Add: Manpage @@ -1945,65 +1932,61 @@ - Add: SHIFT+DEL now deletes all non-vital windows (only status bar and main bar remain) - Add: Windows now shows revision, release information in title bar - Add: Windows snap at each other -- Change: [OSX build] Moved data and lang folders inside OpenTTD. This got rid of the package system too, making installing/updating easier -- Fix: [OSX build] Music is now on by default again -- Fix: [OSX build] Made error opens the console +- Add: Spanish, Catalan and Icelandic +- Change: [OSX] Moved data and lang folders inside OpenTTD. This got rid of the package system too, making installing/updating easier +- Fix: [OSX] Music is now on by default again +- Fix: [OSX] Made error opens the console - Fix: [SDL] Added a confirmation dialog when quitting the game - Fix: A train can leave and enter the same depot at the same time, then the trai simply got stuck -- Fix: Crash when making png screenshot with odd resolution (Tron) -- Fix: Directories in *nix are now sorted alphabetically in ascending order (Tron). +- Fix: Crash when making png screenshot with odd resolution +- Fix: Directories in *nix are now sorted alphabetically in ascending order - Fix: Do not consider a road station as street when growing the town - Fix: Engines from other climates do not appear any more when never_expire_vehicles is enabled - Fix: Game options (like drive side) are not taken from the scenario when using 'new game' command - Fix: Order checker now correctly detects station with invalid facilities - Fix: Polished GUI in a lot of ways - Fix: Saving or loading a map doesnt pauses the game anymore -- Fix: Some bridge part isn't displayed transparent in transparent mode -- Fix: Starting with -r option allows all resolutions (Tron) -- Fix: The pathfinder no longer sees rail with an other owner as a possible route. +- Fix: Some bridge part is not displayed transparent in transparent mode +- Fix: Starting with -r option allows all resolutions +- Fix: The pathfinder no longer sees rail with an other owner as a possible route - Fix: Unable to select other screenshot format in Game Option - Fix: Unwanted town renaming - Fix: Vehicles slow down under bridge if the track is on a foundation - Fix: You can no longer change name of waypoints whom are owned by somebody else -- Fix: [ 1090313 ] Shares are now also sold when a company goes bankrupt -- Fix: [ 1087701 ] It is no longer possible to crash trains of other companies by building a depot close to a station. (even more: trains do no longer enter tiles that do not belong to his owner) -- Fix: [ 1087403 ] Crashed trains aren't reported to have too few orders any more -- Fix: [ 1086375 ] Backup-order-list was not closed with an OT_NOTHING, -- Fix: [ 1085255 ] Docks now have a button to display the catchment area -- Fix: [ 1070274 ] Invisible trains. Weird macros and MSVC optimizing don't always mix. (Tron) -- Fix: [ 1068269 ] Number of passangers and mail in exclusive test offer window is swapped -- Fix: [ 1066504 ] Pause key pauses the game -- Fix: [ 1066121 ] Resetting file name after deleting a file (dannys9) -- Fix: [ 1066114 ] Code error in win32.c Thanks Shai -- Fix: [ 1065247 ] Windows can be placed behind toolbar -- Fix: [ 1064742 ] Editor Map-Menu wrong String -- Fix: [ 1058809 ] Always report a bus/lorry station as unpassable -- Fix: [ 1053397 ] Refit train window stays open -- Fix: [ 1050993 ] Incorrect Tooltip in Road Vehicle List. -- Fix: [ 1048596 ] Monorail and Maglev sounds are swapped -- Fix: [ 1040119 ] Flooded wagons in depots don't keep constantly exploding any more -- Fix: [ 1035303 ] Bug about lowering tracks built on slopes -- Fix: [ 1035066 ] 'Allow goto depot' turned off, no checkpoints in orders -- Fix: [ 1034318 ] Place sign and blue message box -- Fix: [ 1033947 ] Wrong mapping between music titles and songs -- Fix: [ 1030393 ] Some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution (Tron) -- Fix: [ 1030275 ] 'Service at' orders ignored after 2090. After 2090 year is reset to 1. Jan 2090, so most of the time, last service was in the future and no service ensured. -- Fix: [ 1029064 ] Building a station acted weird in some rare situations -- Fix: [ 1022227 ] Ships could unload cargo at stations without docks -- Fix: [ 999669 ] Wrong trees (toyland's) in sub-tropical landscape style -- Fix: [ 993500 ] High bridge rendering error -- Fix: [ 991101 ] Disabled buttons flicker no more -- Fix: [ 985925 ] Start/stop flag in train depots always works, regardless of the horizontal scroll position -- Fix: [ 985439 ] Un-owned rail. Trains could cross competitor's tracks if there was a road-crossing over it. -- Fix: [ 982611 ] Pathfinding bug; train likes the roundabout. If train needs servicing it will now look 16 tiles along the track instead of 12 tiles manhattan style (blathijs) -- Fix: [ 967096 ] Fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame. -- Fix: [ 958098 ] No longer road/rail crossing signals hang when a train is reversed at the wrong moment (Yeah, our longest open bug finally fixed :) :) :)) -- Fix: [ 926105 ] Ctrl + d bug. Longest outstanding bug has been fixed \o/ 2004-03-30 (Tron) -- Language: Added Spanish -- Language: Added Catalan -- Language: Added Icelandic -- Language: Updated most languages -- Fix: Many more things.... +- Fix: Shares are now also sold when a company goes bankrupt [SF#1090313] +- Fix: It is no longer possible to crash trains of other companies by building a depot close to a station. (even more: trains do no longer enter tiles that do not belong to his owner) [SF#1087701] +- Fix: Crashed trains are not reported to have too few orders any more [SF#1087403] +- Fix: Backup-order-list was not closed with an OT_NOTHING, [SF#1086375] +- Fix: Docks now have a button to display the catchment area [SF#1085255] +- Fix: Invisible trains. Weird macros and MSVC optimizing do not always mix [SF#1070274] +- Fix: Number of passangers and mail in exclusive test offer window is swapped [SF#1068269] +- Fix: Pause key pauses the game [SF#1066504] +- Fix: Resetting file name after deleting a file [SF#1066121] +- Fix: Code error in win32.c Thanks Shai [SF#1066114] +- Fix: Windows can be placed behind toolbar [SF#1065247] +- Fix: Editor Map-Menu wrong String [SF#1064742] +- Fix: Always report a bus/lorry station as unpassable [SF#1058809] +- Fix: Refit train window stays open [SF#1053397] +- Fix: Incorrect Tooltip in Road Vehicle List [SF#1050993] +- Fix: Monorail and Maglev sounds are swapped [SF#1048596] +- Fix: Flooded wagons in depots do not keep constantly exploding any more [SF#1040119] +- Fix: Bug about lowering tracks built on slopes [SF#1035303] +- Fix: 'Allow goto depot' turned off, no checkpoints in orders [SF#1035066] +- Fix: Place sign and blue message box [SF#1034318] +- Fix: Wrong mapping between music titles and songs [SF#1033947] +- Fix: Some screensizes crashes OTTD. Fix in general bug that only allows resolutions which were multiple of 8 in width and height. Also use closest possible resolution in fullscreen if window size is not a valid resolution [SF#1030393] +- Fix: 'Service at' orders ignored after 2090. After 2090 year is reset to 1. Jan 2090, so most of the time, last service was in the future and no service ensured [SF#1030275] +- Fix: Building a station acted weird in some rare situations [SF#1029064] +- Fix: Ships could unload cargo at stations without docks [SF#1022227] +- Fix: Wrong trees (toyland's) in sub-tropical landscape style [SF#999669] +- Fix: High bridge rendering error [SF#993500] +- Fix: Disabled buttons flicker no more [SF#991101] +- Fix: Start/stop flag in train depots always works, regardless of the horizontal scroll position [SF#985925] +- Fix: Un-owned rail. Trains could cross competitor's tracks if there was a road-crossing over it [SF#985439] +- Fix: Pathfinding bug; train likes the roundabout. If train needs servicing it will now look 16 tiles along the track instead of 12 tiles manhattan style [SF#982611] +- Fix: Fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame [SF#967096] +- Fix: No longer road/rail crossing signals hang when a train is reversed at the wrong moment [SF#958098] +- Fix: Ctrl + d bug. Longest outstanding bug has been fixed [SF#926105] 0.3.4 (2004-09-14) @@ -2014,593 +1997,593 @@ - Change: Changed 'terraforming' to 'landscaping' - Change: Changed default options (road side, distance units, currency) to most commonly used options - Change: Disable 'Submit Report' and 'Show Details' on OpenTTD error window on Windows. Currently of no use, since no devs have assembly knowledge -- Change: Removed patch no_train_service. Instead you can set the default service interval for any vehicle type to 'disabled'. -- Codechange: Comments added to the code (blathijs) -- Codechange: Made bridge building code more readable [ 996244 ] (follow) +- Change: Removed patch no_train_service. Instead you can set the default service interval for any vehicle type to 'disabled' +- Codechange: Comments added to the code +- Codechange: Made bridge building code more readable [SF#996244] - Feature: "None" as option for number of industries in difficulty settings - Feature: Add many random industries and towns in scenario editor -- Feature: Added Autosignals, just like Autorail. Can copy signal style, convert signal<->semaphore, etc. Big thanks to betatesters Dribbel and Testman57 (Darkvater) -- Feature: Added level land button to scenario editor (chrishuebsch) -- Feature: Added never_expire_vehicles to patches GUI (Chris Huebsch) -- Feature: Added new icons for landscaping toolbar (drawn by sign_de) -- Feature: Added original vehicle names file. Select it from the list. Vehicles will have real name, all other strings are in English (orudge). +- Feature: Added Autosignals, just like Autorail. Can copy signal style, convert signal<->semaphore, etc +- Feature: Added level land button to scenario editor +- Feature: Added never_expire_vehicles to patches GUI +- Feature: Added new icons for landscaping toolbar +- Feature: Added original vehicle names file. Select it from the list. Vehicles will have real name, all other strings are in English - Feature: Added/heavily modified patch by truesatan cheat change date -- Feature: Align toolbar left/center/right patch (TrueLight) -- Feature: All TTDLX kind of savegames are supported (.SS1, .SV1, .SV2, .SV0, .SS0). -- Feature: Alpha version of a new AI (TrueLight) -- Feature: Autodetect server in LAN via udp (Sign) +- Feature: Align toolbar left/center/right patch +- Feature: All TTDLX kind of savegames are supported (.SS1, .SV1, .SV2, .SV0, .SS0) +- Feature: Alpha version of a new AI +- Feature: Autodetect server in LAN via udp - Feature: Build_date of station (viewable with Query tool) - Feature: Cheat switch climate -- Feature: Company HQ can now be moved somewhere else (cost 1% of company value). Water floods HQ. +- Feature: Company HQ can now be moved somewhere else (cost 1% of company value). Water floods HQ - Feature: Competitors menu under patches - Feature: Copy/share orders now works from ship depot window for ships and hangar window for aircraft -- Feature: Difficulty settings window has been changed (Darkvater) +- Feature: Difficulty settings window has been changed - Feature: Enable/disable all buttons in message settings - Feature: Executeable is now openttd(.exe) always - Feature: General protection around Sprites -- Feature: Ingame console (sign_de) -- Feature: Invalid (void) orders in schedule are highlighted in red (Celestar) +- Feature: Ingame console +- Feature: Invalid (void) orders in schedule are highlighted in red - Feature: Invisible trees when in transparent mode (patch entry) -- Feature: Option to sort vehicles in vehicle-list window by different criteria. -- Feature: Performance details window in company league menu (TrueLight) -- Feature: Proper crediting to graphics artists to about box. -- Feature: Removing town roads has been finetuned. +- Feature: Option to sort vehicles in vehicle-list window by different criteria +- Feature: Performance details window in company league menu +- Feature: Proper crediting to graphics artists to about box +- Feature: Removing town roads has been finetuned - Feature: Safeguard against invalid values in Patches window. Values will stick to their defined min and max values - Feature: Sorting savegames, scenarios by name/date - Feature: Terraforming toolbar (in the plant tree menu) -- Feature: The extra dynamite patch has been changed a bit. -- Feature: Warning when a vehicle has invalid orders (celestar) -- Feature: Water floods everything, including vehicles. -- Feature: Working multiplayer gui (sign_de) -- Feature: [ 976127 ] No extra frequent jet crash on small airports (truesatan) -- Feature: [ 992998 ] Scrollto Station in Orders. CTRL click on orders of a vehicle and main-window scrolls to that station. (chrishuebsch) -- Feature: [ 997115 ] Improved industry directory (hampzter) -- Feature: [ 1003350 ] Euro introduction news item. (dominik81) -- Feature: [ 1009708 ] Percent-based service intervals. Send a vehicle to depot after it has lost X% of its reliability (mivlad) -- Feature: [ 1009710 ] Extra Viewport (Dribbel) -- Feature: [ 1024044 ] Show max loan in finances window. (ledow) +- Feature: The extra dynamite patch has been changed a bit +- Feature: Warning when a vehicle has invalid orders +- Feature: Water floods everything, including vehicles +- Feature: Working multiplayer gui +- Feature: No extra frequent jet crash on small airports [SF#976127] +- Feature: Scrollto Station in Orders. CTRL click on orders of a vehicle and main-window scrolls to that station [SF#992998] +- Feature: Improved industry directory [SF#997115] +- Feature: Euro introduction news item [SF#1003350] +- Feature: Percent-based service intervals. Send a vehicle to depot after it has lost X% of its reliability [SF#1009708] +- Feature: Extra Viewport [SF#1009710] +- Feature: Show max loan in finances window [SF#1024044] - Fix: (Unix) loading old scenarios (.sv0) works again - Fix: 64bit CPU fixes - Fix: 64x64 stations are now nicely painted -- Fix: A lot of network fixing (sign_de) +- Fix: A lot of network fixing - Fix: A lot of old AI fixed - Fix: All scenarios, savegames show up with their correct name - Fix: Automatic oil refinery generation in editor - Fix: Autosave folder was not created on MorphOS- Fix: Bridge slope fix again, thanks Truelight -- Fix: Bulldozing stuff with cheat magic_dynamite turned on doesn't lower city ratings +- Fix: Bulldozing stuff with cheat magic_dynamite turned on does not lower city ratings - Fix: Change SDL_HWSURFACE back to SDL_SWSURFACE (Diablo-3D); better performance -- Fix: Coast line near edge of map and near oilrigs (Dribbel) -- Fix: Company-value was not updated immediatly if legend was changed (vondel) -- Fix: Delete canal under bridge wasn't possible -- Fix: Disable Fast Forward in network games visually (didn't work anyways, just showed graphical output) +- Fix: Coast line near edge of map and near oilrigs +- Fix: Company-value was not updated immediatly if legend was changed +- Fix: Delete canal under bridge was not possible +- Fix: Disable Fast Forward in network games visually (did not work anyways, just showed graphical output) - Fix: Error message for 'game load failed' when no town is in a scenario - Fix: Game not pausing when saveload dialog is clicked in main menu - Fix: Load Scenario fix - Fix: Make endianess check 100% accurate -- Fix: Memory leak in news system (blathijs) +- Fix: Memory leak in news system - Fix: Monorail/maglev became available around 1927 - Fix: Move around sort-widgets a bit so it looks more natural -- Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc). +- Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc) - Fix: Old scenarios have correct colour - Fix: Placing/editing signs signs is possible in paused mode - Fix: Player window fixes, Getstring id0 fixes, Finances window is now ok - Fix: Playing new game with scenarios in windows works - Fix: Possible to disable some patches (e.g. default service interval) again by setting them to 0 -- Fix: Problems around exclusive transport rights (Celestar) +- Fix: Problems around exclusive transport rights - Fix: Railroad crossings on slopes are now possible - Fix: Random crash when player-face was displayed in error-dialog - Fix: Rare mousewheel scrolling with scrollbar crash -- Fix: Road vehicles don't get stuck any more at stations (Truelight + Celestar) +- Fix: Road vehicles do not get stuck any more at stations - Fix: Savegames are sorted with newest date first by default - Fix: Scenario editor now asks before it generates a random landscape -- Fix: Slopes graphics fix (dominik) +- Fix: Slopes graphics fix - Fix: Small gap between station button and signal button in rail toolbar -- Fix: Some minor fixes around GetTileTrackStatus (blathijs) +- Fix: Some minor fixes around GetTileTrackStatus - Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first - Fix: Starting a new game in DesertLandscape crashed the game - Fix: Stupid bug in company league window if non-player is first - Fix: Two non-AI players when loading a scenario - Fix: Unix uses same sorting of directories, files as windows - Fix: When adding parts to a statin max size is not 15x15 anymore, but _patches.station_spread -- Fix: Win98 crashes related to music/sound (orudge) +- Fix: Win98 crashes related to music/sound - Fix: Wrong building of road-slopes for a future AI/Town -- Fix: Wrong pathfinding when northern station tile is missing (blathijs) +- Fix: Wrong pathfinding when northern station tile is missing - Fix: You cannot take ownership of an oilrig by building right next to it - Fix: [Makefile] Fixed issue where sdl-config was needed even on systems without SDL -- Fix: [SDL] Performance fix fo palette animation and mouse jumping (jirif) +- Fix: [SDL] Performance fix fo palette animation and mouse jumping - Fix: [SDL] Same resolution was displayed more than once in game options -- Fix: [SDL] Smoother mouse and performance fix, like in Win32 (jirif) -- Fix: [ 963056 ] Wrong trains you can buy with scenarios -- Fix: [ 972087 ] Minimap crash -- Fix: [ 972247 ] Bug in '[a] weird non-uniform stations handling' (blathijs) -- Fix: [ 976583 ] Parent_list was too small -- Fix: [ 981934 ] Memoryleak in parent_list -- Fix: [ 982666 ] Max_loan in editor bug (TrueLight) -- Fix: [ 987888 ] Bridge building over boats -- Fix: [ 990770 ] Cargo delivery area patch for bug #989322. (Celstar) -- Fix: [ 992726 ] No tunnel crash (Celestar) -- Fix: [ 993339 ] Light House Placement Bug -- Fix: [ 993374 ] Pressing alt locks the game - sort of a bug. -- Fix: [ 993493 ] Buildings on water -- Fix: [ 993512 ] No canal building under bridge -- Fix: [ 993829 ] UDP Fixes (lucaspiller) -- Fix: [ 994067 ] Train drivers dies two times (follow) -- Fix: [ 994720 ] Road depot - bus/lorry station (Truelight+Darkvater P ) -- Fix: [ 996025 ] _local_player fixes. Fixes wrong memory access (TrueLight) -- Fix: [ 996065 ] Bridge Bug fixed bug fixed again (Darkvater) -- Fix: [ 996065 ] Weird two tile bridges on slopes -- Fix: [ 997303 ] Empty strings in signs -- Fix: [ 997703 ] Junction after tunnel bug (blathijs) -- Fix: [ 999592 ] "autosave" directoy creation (MorphOS/AmigaOS) (Tokai) -- Fix: [ 1001540 ] I lost all wagons. Half-assed fix for lost wagons. But now users can at least fix this problem. Consolecommand "resetengines" -- Fix: [ 1006530 ] BuildRoadOutsideStation fix. -- Fix: [ 1006715 ] Autorenew issues -- Fix: [ 1007272 ] Copy orders between bus/truck possible. (Celestar) -- Fix: [ 1007630 ] Scenario editor pause bug -- Fix: [ 1008605 ] Signals not updated after ClearTunnel Bug [ 985920 ] (TrueLight) -- Fix: [ 1009385 ] Too many save games prevented loading -- Fix: [ 1009567 ] problem with transferred cargo crashes game. -- Fix: [ 1009621 ] build in pause is now a cheat instead of a patch (truesatan) -- Fix: [ 1009631 ] Wrong multihead selling (Bodewes) -- Fix: [ 1010833 ] Turning on the magic bulldozer removes oil rigs -- Fix: [ 1012086 ] Drunk pilot (Celestar) -- Fix: [ 1014278 ] TileAddWrap() gave wrong results. -- Fix: [ 1016954 ] Cached_sprites does now work again -- Fix: [ 1022689 ] Bug when dragging a part of a multiheaded engine to 'sell-whole-train'. -- Fix: [ 1023971 ] Fix for MouseWheel assert error in non-zoomable viewports. Zooming now will only occur if mousepointer is either in an extra viewport window, or main game-window (Dribbel) -- Fix: [ 1025836 ] Company value problem (again). Now company value rightly shows the value, including ALL your money. -- Fix: [ 1025836 ] Company values bigger dan int32 were put to negative -- Fix: [ 1025836 ] Long bridges had negative value -- Fix: [ 1026271 ] Vehicle depots not transparent with transparent buildings. +- Fix: [SDL] Smoother mouse and performance fix, like in Win32 +- Fix: Wrong trains you can buy with scenarios [SF#963056] +- Fix: Minimap crash [SF#972087] +- Fix: Bug in '[a] weird non-uniform stations handling' [SF#972247] +- Fix: Parent_list was too small [SF#976583] +- Fix: Memoryleak in parent_list [SF#981934] +- Fix: Max_loan in editor bug [SF#982666] +- Fix: Bridge building over boats [SF#987888] +- Fix: Cargo delivery area patch for bug [SF#990770, SF#989322] +- Fix: No tunnel crash [SF#992726] +- Fix: Light House Placement Bug [SF#993339] +- Fix: Pressing alt locks the game - sort of a bug [SF#993374] +- Fix: Buildings on water [SF#993493] +- Fix: No canal building under bridge [SF#993512] +- Fix: UDP Fixes [SF#993829] +- Fix: Train drivers dies two times [SF#994067] +- Fix: Road depot - bus/lorry station [SF#994720] +- Fix: _local_player fixes. Fixes wrong memory access [SF#996025] +- Fix: Bridge Bug fixed bug fixed again [SF#996065] +- Fix: Weird two tile bridges on slopes [SF#996065] +- Fix: Empty strings in signs [SF#997303] +- Fix: Junction after tunnel bug [SF#997703] +- Fix: "autosave" directoy creation (MorphOS/AmigaOS) [SF#999592] +- Fix: I lost all wagons. Half-assed fix for lost wagons. But now users can at least fix this problem. Consolecommand "resetengines" [SF#1001540] +- Fix: BuildRoadOutsideStation fix [SF#1006530] +- Fix: Autorenew issues [SF#1006715] +- Fix: Copy orders between bus/truck possible [SF#1007272] +- Fix: Scenario editor pause bug [SF#1007630] +- Fix: Signals not updated after ClearTunnel Bug [SF#1008605, SF#985920] +- Fix: Too many save games prevented loading [SF#1009385] +- Fix: problem with transferred cargo crashes game [SF#1009567] +- Fix: build in pause is now a cheat instead of a patch [SF#1009621] +- Fix: Wrong multihead selling [SF#1009631] +- Fix: Turning on the magic bulldozer removes oil rigs [SF#1010833] +- Fix: Drunk pilot [SF#1012086] +- Fix: TileAddWrap() gave wrong results [SF#1014278] +- Fix: Cached_sprites does now work again [SF#1016954] +- Fix: Bug when dragging a part of a multiheaded engine to 'sell-whole-train' [SF#1022689] +- Fix: Fix for MouseWheel assert error in non-zoomable viewports. Zooming now will only occur if mousepointer is either in an extra viewport window, or main game-window [SF#1023971] +- Fix: Company value problem (again). Now company value rightly shows the value, including ALL your money [SF#1025836] +- Fix: Company values bigger dan int32 were put to negative [SF#1025836] +- Fix: Long bridges had negative value [SF#1025836] +- Fix: Vehicle depots not transparent with transparent buildings [SF#1026271] 0.3.3 (2004-07-13) ------------------------------------------------------------------------ -- Feature: (MorphOS/AmigaOS) network support -- Feature: improved german town name generator -- Change: scenarios now have the file extension .scn -- Fix: removing and upgrading tracks under a bridge when a train is on the bridge -- Change: default network port from 12345 (known trojan) to 3979 -- Fix: pause button was not synched in network games -- Fix: crash caused by invalid screen resolutions -- Fix: AI can not build tubular bridges in 1950, etc. Same restrictions apply to it, as to human players. -- Feature: transparent station signs -- Feature: show total cargo per wagon type in train details window -- Fix: volume, liters, was x100, should be x1000 -- Feature: bridges on slopes -- Fix: bridge building by towns was screwed when executed without testing first -- Feature: added Galician translation (by Condex) -- Change: crossing tunnels is now considered a cheat -- Fix: better AI route finding +- Feature: MorphOS/AmigaOS network support +- Feature: Improved German town name generator +- Feature: Transparent station signs +- Feature: Show total cargo per wagon type in train details window +- Feature: Bridges on slopes +- Feature: Added Galician translation +- Feature: Extra dynamite, allow the removal of town-owned roads, bridges, tunnels for a popularity rating penalty +- Feature: Magic bulldozer cheat, that lets you remove industries, unmovables and town-owned buildings, roads and bridges +- Feature: Enabled 'remove' button for stations +- Feature: Cheat GUI (activate with crtl-alt-c) The game remembers if you have used a cheat +- Feature: Station sort implemented using qsort() +- Feature: Station list shows #of stations owned by player +- Feature: Split canal/lock tool in two tools, one for building canals, one for locks +- Feature: Make the HQ generate passengers and mail +- Feature: Display number of houses in town overview window +- Feature: Land info now shows type of signal +- Feature: Realistic train reversing +- Feature: Added support for 64 bit CPUs +- Feature: Added water quantity level "very low", which is the default for easy mode now +- Feature: Realistic acceleration turned on, train must first slow down and stop before it can reverse +- Feature: [MorphOS]: Various small improvement to make the the game feel more native +- Feature: Alt + f now toggles full screen (alt + enter still works) +- Feature: [OSX] Command + q shows the quit window and command + f or enter toggles full screen (alt and control still works too) +- Feature: Autorenew, autorenews vehicles if enabled +- Feature: (Incomplete) news history window +- Feature: Larger smallmap size +- Feature: Austrian Citynames +- Feature: Repaying most possible debt +- Feature: Added Polish translation +- Feature: Added Danish translation +- Feature: Initial GRF support.You have to enable it in openttd.cfg using [NewGRF] setting +- Feature: Smooth economy changes +- Feature: TTDPatch-style gotodepot. Ship depots and aircraft hangars can be inserted in the schedule as well +- Feature: Ability to add "service if needed" orders (the "full load" button changes to "service" after selecting a depot order) +- Feature: If a vehicle has depot orders in its schedule, automatic servicing is disabled +- Feature: Patch setting so that helicopters get serviced automatically on helipad +- Feature: Center toolbar on screen +- Feature: Sort savelist by date +- Feature: Allow scrolling in both directions +- Feature: Two new airports (metropolitan in 1980 and international in 1990) +- Feature: Resizing the window in all SDL builds +- Feature: Added MIDI flag to makefile to set custom path to midi player +- Change: Autosaves are now placed in save/autosave +- Change: Default savegame directory is /save in Linux +- Change: Screenshots are saved to PERSONAL_DIR (unix) +- Change: Scenarios now have the file extension .scn +- Change: Default network port from 12345 (known trojan) to 3979 +- Change: Crossing tunnels is now considered a cheat +- Change: Made helicopters able to land on small airports again +- Fix: Removing and upgrading tracks under a bridge when a train is on the bridge +- Fix: Pause button was not synched in network games +- Fix: Crash caused by invalid screen resolutions +- Fix: AI can not build tubular bridges in 1950, etc. Same restrictions apply to it, as to human players +- Fix: Volume, liters, was x100, should be x1000 +- Fix: Bridge building by towns was screwed when executed without testing first +- Fix: Better AI route finding - Fix: AI builds less inner-city bus stations - Fix: Better industry spreading on random maps - Fix: Two industries that accept the same goods can never be very close to each other -- Feature: Extra dynamite, allow the removal of town-owned roads, bridges, tunnels for a popularity rating penalty -- Feature: magic bulldozer cheat, that lets you remove industries, unmovables and town-owned buildings, roads and bridges -- Fix: destroying bridge (over water or 'higher bridge' with vehicle on it) -- Fix Game crashes when you hit the build rail button -- Fix: some scenarios had a max_railtype of 0 +- Fix: Destroying bridge (over water or 'higher bridge' with vehicle on it) +- Fix: Game crashes when you hit the build rail button +- Fix: Some scenarios had a max_railtype of 0 - Fix: Bribe Autorithy. A failed attempt to bribe is now also stored in savegame - Fix: 80% CPU load paused in fast-forward -- Feature: Enabled 'remove' button for stations -- Feature: Cheat GUI (activate with crtl-alt-c) The game remembers if you have used a cheat - Fix: Some airport runways were treated -- Fix: minor minimap glitch -- Fix: station sorting scroll fails with not ennough stations -- Fix: desert ground for depots in the desert -- Feature: station sort implemented using qsort() -- Feature: station list shows #of stations owned by player -- Fix: trains could run on wrong track type under bridges -- Fix: screenshot hangs -- Feature: split canal/lock tool in two tools, one for building canals, one for locks. -- Fix: wrong sound with ships -- Fix: toy shop closes even though it has supply -- Fix: nordic characters -- Feature: make the HQ generate passengers and mail -- Fix: slso restore Service Interval when rebuying vehicle -- Fix: crash with map bits > 8 -- Fix: ufo crash in busstop -- Fix: town actions has empty row -- Change: made helicopters able to land on small airports again -- Feature: display number of houses in town overview window -- Fix: train stuck with the head in one depot and tail in another +- Fix: Minor minimap glitch +- Fix: Station sorting scroll fails with not ennough stations +- Fix: Desert ground for depots in the desert +- Fix: Trains could run on wrong track type under bridges +- Fix: Screenshot hangs +- Fix: Wrong sound with ships +- Fix: Toy shop closes even though it has supply +- Fix: Nordic characters +- Fix: Also restore Service Interval when rebuying vehicle +- Fix: Crash with map bits > 8 +- Fix: UFO crash in busstop +- Fix: Town actions has empty row +- Fix: Train stuck with the head in one depot and tail in another - Fix: Optimized random radio tower spreading -- Feature: Land info now shows type of signal -- Fix: ground below trees is sometimes not covered by snow -- Fix: fast forward button in scenario editor -- Change: screenshots are saved to PERSONAL_DIR (unix) -- Fix: screenshot hotkey does not function in scenario editor -- Fix: allow deleting a bridge if a vehicle is below -- Fix: crash loading a scenario -- Fix: build tracks on water -- Fix: fast forward button pressed with tab -- Fix: vehicles don't get old -- Feature: realistic train reversing -- Feature: added support for 64 bit CPUs -- Fix: finance bug with some original scenarios -- Feature: added water quantity level "very low", which is the default for easy mode now +- Fix: Ground below trees is sometimes not covered by snow +- Fix: Fast forward button in scenario editor +- Fix: Screenshot hotkey does not function in scenario editor +- Fix: Allow deleting a bridge if a vehicle is below +- Fix: Crash loading a scenario +- Fix: Build tracks on water +- Fix: Fast forward button pressed with tab +- Fix: Vehicles do not get old +- Fix: Finance bug with some original scenarios - Fix: 'Stopped' is shown when train is stopping and 'Reverse' is clicked -- Feature: realistic acceleration turned on, train must first slow down and stop before it can reverse -- Feature: (MorphOS build) various small improvement to make the the game feel more native -- Feature: alt + f now toggles full screen (alt + enter still works) -- Feature: (OSX build) command + q shows the quit window and command + f or enter toggles full screen (alt and control still works too) -- Feature: pasky's autorenew, autorenews vehicles if enabled. -- Feature: (incomplete) news history window -- Feature: larger smallmap size -- Feature: Austrian Citynames -- Feature: repaying most possible debt -- Feature: added Polish translation (by tomek) -- Feature: added Danish translation (by Gof.dk) -- Feature: pasky's grfspecial loader. You have to enable them in openttd.cfg using [newgrf] setting -- Feature: smooth economy changes - Fix: 100% CPU bug -- Fix: crash when AI builds airport -- Fix: plays wrong music on main screen -- Fix: inflation was way too high when intrest rate = 0 -- Fix: can't sell anything if money is TOO negative -- Fix: fast forward button resets -- Feature: TTDPatch-style gotodepot. Ship depots and aircraft hangars can be inserted in the schedule as well. -- Feature: ability to add "service if needed" orders (the "full load" button changes to "service" after selecting a depot order) -- Feature: if a vehicle has depot orders in its schedule, automatic servicing is disabled -- Change: autosaves are now placed in save/autosave -- Feature: patch setting so that helicopters get serviced automatically on helipad -- Fix: "refit train" button remains -- Change: default savegame directory is /save in Linux -- Fix: enable up/down scrolling with the mouse -- Feature: center toolbar on screen -- Feature: sort savelist by date -- Feature: allow scrolling in both directions -- Feature: darkvater's two new airports (metropolitan in 1980 and international in 1990) -- Feature: Resizing the window in all SDL builds +- Fix: Crash when AI builds airport +- Fix: Plays wrong music on main screen +- Fix: Inflation was way too high when intrest rate = 0 +- Fix: Cannot sell anything if money is TOO negative +- Fix: Fast forward button resets +- Fix: "Refit train" button remains +- Fix: Enable up/down scrolling with the mouse - Fix: 1920 all trains -- Fix: wrong heli breakdownspeed -- Feature: added MIDI flag to makefile to set custom path to midi player -- Fix: station list cargo waiting display bug -- Fix: bug that could allow rails on steep slopes -- Fix: train depots and checkpoints not flooded by water -- Fix: added command line option (-i) to deactivate the grf check -- Fix: signal bug [ 949929 ] +- Fix: Wrong heli breakdownspeed +- Fix: Station list cargo waiting display bug +- Fix: Bug that could allow rails on steep slopes +- Fix: Train depots and checkpoints not flooded by water +- Fix: Added command line option (-i) to deactivate the grf check +- Fix: Signal bug [SF#949929] 0.3.2.1 (2004-05-23) ------------------------------------------------------------------------ -- Fix: use english.lng by default +- Feature: Now builds on FreeBSD +- Feature: Now builds on MorphOS +- Fix: Use english.lng by default - Fix: No bridges available in 1920 -- Fix: czech file was missing -- Feature: now builds on FreeBSD -- Feature: now builds on MorphOS +- Fix: Czech file was missing 0.3.2 (2004-05-22) ------------------------------------------------------------------------ -- Feature: HP for trians limited to 16bit int -- Feature: added Czech translation -- Feature: train refitting -- Feature: auto euro -- Fix: don't allow building railroad stations on airports or bus stations -- Feature: industry directory -- Feature: added extend vehicle life/noexpire patch -- Feature: show revision number in title bar -- Fix: Enable mouse wheel scrolling and zooming in SDL -- Fix: Construct industries producing raw materials -- Fix: loading TTD saves gave incorrect reliability parameters for wagons -- Feature: random network games -- Fix: fixed order restore bug in network play -- Fix: network sync fix for train goto depot -- Feature: smallmap remembers size -- Fix: Only one statue per player per town -- Fix: enhanced patch configurator -- Fix: if realistic acceleration was enabled, train didn't accelerate if they entered a tunnel right after a slope -- Fix: remove sdl frameskip message -- Fix: road vehicle on hills speedfix -- Fix: CompanyValueGraph window too small for currency -- Fix: mkdir() problem in unix.c -- Fix: client kills server if it leaves a networkgame -- Change: autosave go to autosave/ -- Fix: Canal tool resets after 1 use -- Feature: remember value of show town names in smallmap -- Feature: norwegian translation -- Feature: norwegian currency -- Feature: slovak language -- Fix: smoother mouse cursor -- Fix: fixed a couple of overlapping memcpys -- Feature: use SO_REUSEADDR on listen socket -- Feature: unix sigabort handling -- Feature: hungarian translation -- Fix: quit to beos -- Fix: dragging to build canals sometimes crashed -- Fix: cactus plants died on desert -- Feature: added norwegian translation -- Feature: added more default resolutions -- Feature: return error message if DOS grf files are used -- Feature: bemidi support -- Fix: invalid letters in spanish town names -- Fix: rail upgrade button -- Fix: makefile reorganization -- Fix: Zoom out button not grayed out -- Fix: no space between some values and units +- Feature: HP for trains limited to 16bit int +- Feature: Added Czech translation +- Feature: Train refitting +- Feature: Auto euro +- Feature: Industry directory +- Feature: Added extend vehicle life/noexpire patch +- Feature: Show revision number in title bar +- Feature: Random network games +- Feature: Smallmap remembers size +- Feature: Remember value of show town names in smallmap +- Feature: Norwegian translation +- Feature: Norwegian currency +- Feature: Slovak language +- Feature: Use SO_REUSEADDR on listen socket +- Feature: Unix sigabort handling +- Feature: Hungarian translation +- Feature: Added Norwegian translation +- Feature: Added more default resolutions +- Feature: Return error message if DOS grf files are used +- Feature: Bemidi support +- Feature: Added Icelandic currency - Change: Plant area of trees now allowed for 20x20 area - Change: "kmh^-1" to "km/h" -- Fix: Station catchment outline-tiles weren't shown properly on slopes -- Fix: oil rig station wasn't properly deleted -- Fix: fixed making screenshots in scenario editor -- Feature: added icelandic currency -- Change: show original savegame names for oldstyle savegames -- Fix: mac patches by bjarni -- Fix: fixed alignment issue in station drawing +- Change: Show original savegame names for oldstyle savegames +- Change: Autosave go to autosave/ +- Fix: Do not allow building railroad stations on airports or bus stations +- Fix: Canal tool resets after 1 use +- Fix: Enable mouse wheel scrolling and zooming in SDL +- Fix: Construct industries producing raw materials +- Fix: Loading TTD saves gave incorrect reliability parameters for wagons +- Fix: Fixed order restore bug in network play +- Fix: Network sync fix for train goto depot +- Fix: Only one statue per player per town +- Fix: Enhanced patch configurator +- Fix: If realistic acceleration was enabled, train did not accelerate if they entered a tunnel right after a slope +- Fix: Remove SDL frameskip message +- Fix: Road vehicle on hills speedfix +- Fix: CompanyValueGraph window too small for currency +- Fix: Mkdir() problem in unix.c +- Fix: Client kills server if it leaves a networkgame +- Fix: Smoother mouse cursor +- Fix: Fixed a couple of overlapping memcpys +- Fix: Quit to beos +- Fix: Dragging to build canals sometimes crashed +- Fix: Cactus plants died on desert +- Fix: Invalid letters in spanish town names +- Fix: Rail upgrade button +- Fix: Makefile reorganization +- Fix: Zoom out button not grayed out +- Fix: No space between some values and units +- Fix: Station catchment outline-tiles were not shown properly on slopes +- Fix: Oil rig station was not properly deleted +- Fix: Fixed making screenshots in scenario editor +- Fix: Mac patches +- Fix: Fixed alignment issue in station drawing 0.3.1 (2004-04-26) ------------------------------------------------------------------------ -- Fix: shift+arrows keys scrolls faster (by pasky) -- Feature: bridge pillars for higher bridges -- Fix: [ 941880 ] "monorail in 1985" which allowed you to build monorail/maglev at any year -- Feature: remember cargo payment rates selection, default to all -- Fix: town ratings when companies are deleted/merged -- Fix: vehicle reliability calculation in third phase -- Change: new directory structure (*.grf+sample.cat in data subdir, *.lng in lang subdir) -- Feature: fast forward button -- Fix: random world button in scenario editor doesn't build cities, industries, trees -- Fix: loading worlds with no towns now fails -- Fix: outdated sort order after station renaming -- Feature: copy/share orders from trains in depot -- Fix: better train detection for copy orders -- Fix: [ 938481 ] Euro currency bug -- Fix: [ 938170 ] Go to xxx road depot selection bug (2) -- Fix: [ 934520 ] scrolling and newspaper in title screen -- Feature: swedish translation (by poLiSen) -- Fix: incorrect cargo_days for trains -- Feature: dragging to construct canals -- Fix array bounds error with train breakdown speeds -- Fix: towns deleting random tiles around houses -- Feature: can now have more than 128 towns -- Fix: incorrect road vehicle list caption for competitors -- Fix: vehicle menu graying after a bankrupty -- Feature: always allow building small airports patch -- Feature: colorful newspaper after a certain date -- Feature: build while paused patch -- Feature: polish town names -- Fix: selective road removal -- Feature: clear area now works in scenario editor -- Feature: drag&drop stations -- Fix: make houses available in 1920 to prevent hang -- Fix: duration of breakdown smoke -- Fix: slope bug under bridges -- Feature: more realistic train starting and stopping -- Fix: don't play invalid sounds (fixes road reconstruction crash) -- Fix: display correct train power with multihead engines -- Fix: buffer overflow caused by too long string in english.lng -- Fix: destroying things with no money +- Feature: Bridge pillars for higher bridges +- Feature: Remember cargo payment rates selection, default to all +- Feature: Fast forward button +- Feature: Copy/share orders from trains in depot +- Feature: Swedish translation +- Feature: Dragging to construct canals +- Feature: Can now have more than 128 towns +- Feature: Always allow building small airports patch +- Feature: Colorful newspaper after a certain date +- Feature: Build while paused patch +- Feature: Polish town names +- Feature: Clear area now works in scenario editor +- Feature: Drag&drop stations +- Feature: More realistic train starting and stopping +- Change: New directory structure (*.grf+sample.cat in data subdir, *.lng in lang subdir) +- Fix: Shift+arrows keys scrolls faster +- Fix: "Monorail in 1985" which allowed you to build monorail/maglev at any year [SF#941880] +- Fix: Town ratings when companies are deleted/merged +- Fix: Vehicle reliability calculation in third phase +- Fix: Random world button in scenario editor does not build cities, industries, trees +- Fix: Loading worlds with no towns now fails +- Fix: Outdated sort order after station renaming +- Fix: Better train detection for copy orders +- Fix: Euro currency bug [SF#938481] +- Fix: Go to xxx road depot selection bug (2) [SF#938170] +- Fix: Scrolling and newspaper in title screen [SF#934520] +- Fix: Incorrect cargo_days for trains +- Fix: Array bounds error with train breakdown speeds +- Fix: Towns deleting random tiles around houses +- Fix: Incorrect road vehicle list caption for competitors +- Fix: Vehicle menu graying after a bankrupty +- Fix: Selective road removal +- Fix: Make houses available in 1920 to prevent hang +- Fix: Duration of breakdown smoke +- Fix: Slope bug under bridges +- Fix: Do not play invalid sounds (fixes road reconstruction crash) +- Fix: Display correct train power with multihead engines +- Fix: Buffer overflow caused by too long string in english.lng +- Fix: Destroying things with no money 0.3.0 (2004-04-14) ------------------------------------------------------------------------ -- Change: don't slow down trains as much on hills -- Fix: aircraft terminal wasn't properly freed if aircraft crashed -- Fix: fixed station acceptance bug -- Change: limit amount of radiotowers. -- Feature: cost estimation with Shift -- Change: changed speedkey from Shift to Tab. -- Feature: added patch for starting_date, takes a value on the form yyyy, yyyymm or yyyymmdd. -- Feature: support for multiheaded trains -- Feature: sell whole train by dragging loco to special trashcan -- Feature: drag the whole train with ctrl in depot -- Fix: fixed buy shares in company -- Feature: added convert rail tool -- Change: enhanced patches window with pages. -- Feature: patch to select what vehicle types the ai will build -- Feature: better slope graphics -- Fix: only deliver goods to stations that have a rating != 0 -- Feature: new pathfinding algorithm for trains (enable with new_pathfinding) -- Change: changed intro graphics -- Change: all player stuff is deleted when you load a scenario. -- Fix: added F hotkeys in scenario editor +- Feature: Cost estimation with Shift +- Feature: Added patch for starting_date, takes a value on the form yyyy, yyyymm or yyyymmdd +- Feature: Support for multiheaded trains +- Feature: Sell whole train by dragging loco to special trashcan +- Feature: Drag the whole train with ctrl in depot +- Feature: Added convert rail tool +- Feature: Patch to select what vehicle types the ai will build +- Feature: Better slope graphics +- Feature: New pathfinding algorithm for trains (enable with new_pathfinding) - Feature: Added patch to use timidity for BeOS -- Feature: mousewheel can now be used to scroll in windows -- Feature: added coordinate display to landinfo window -- Feature: change default servicing interval for vehicles -- Feature: change max # of vehicles per player -- Fix: unable to raise land next to signal -- Feature: nonuniform stations patch -- Feature: moved error message box out of the way -- Fix: aircraft was shown instead of ships in player overview window -- Feature: canals/shiplifts -- Feature: build tree of random type -- Feature: build trees on area -- Feature: added color coded vehicle profits -- Feature: ability to close error messages with space. -- Fix: updated installer to take care of savegames more carefully -- Fix: don't make a new subsidy if there already exists one that is currently active by a company -- Fix: town directory sometimes showed huge numbers -- Fix: fixed bugs when changing owners of items (pieces of rail were not always deleted), -- Feature: network games (currently unsupported) -- Fix: fixed bug with large stations in train pathfinder -- Change: use save/ as save folder on win32 -- Feature: bigger demolish tool -- Change: moved date in news window -- Feature: two more bridges -- Feature: improved depot finding -- Feature: bribe the town authority -- Feature: allow building many trees on a single tile. -- Feature: added snow_line_height setting, only affects new games. -- Change: don't check if tiles around the clicked station is a station in order gui -- Fix: deleting docks doesn't produce land -- Fix: deleting ship depot doesn't produce land -- Fix: buoy is now treated as water when flooding -- Feature: errmsg_duration controls how long error messages are displayed -- Fix: combo presignals bug fix -- Fix: prevent going to 0,0 if airport/docks is deleted -- Feature: fullscreen_bpp setting in [win32] sets the bpp to use in fullscreen mode -- Fix: french town names had bad letters in them -- Feature: euro symbol -- Feature: high bridges -- Fix: order list when replacing train didn't work properly -- Change: keep checkpoint button down after placing -- Fix: start in the middle of the map -- Change: moved disk devices to bottom of list on win32 -- Fix: more error tolerant saveload code +- Feature: Mousewheel can now be used to scroll in windows +- Feature: Added coordinate display to landinfo window +- Feature: Change default servicing interval for vehicles +- Feature: Change max # of vehicles per player +- Feature: Nonuniform stations patch +- Feature: Moved error message box out of the way +- Feature: Canals/shiplifts +- Feature: Build tree of random type +- Feature: Build trees on area +- Feature: Added color coded vehicle profits +- Feature: Ability to close error messages with space +- Feature: Network games (currently unsupported) +- Feature: Bigger demolish tool +- Feature: Two more bridges +- Feature: Improved depot finding +- Feature: Bribe the town authority +- Feature: Allow building many trees on a single tile +- Feature: Added snow_line_height setting, only affects new games +- Feature: Errmsg_duration controls how long error messages are displayed +- Feature: Fullscreen_bpp setting in [win32] sets the bpp to use in fullscreen mode +- Feature: Euro symbol +- Feature: High bridges - Feature: ZLIB savegames (smaller than before) -- Feature: PNG,PCX screenshot support -- Feature: indicate with gray in vehicle popup menus if company has no vehicles of that type -- Feature: clicking on the money brings up finances -- Fix: (OSX build) now runs even if sdl is not present on the system -- Fix: (OSX build) now runs on systems older than 10.3 -- Fix: (OSX build) altered compiler settings to make a completely stable app -- Feature: (OSX build) distribution now uses Apples package system for easier updates -- Feature: (OSX build) Application is now a proper bundle application +- Feature: PNG, PCX screenshot support +- Feature: Indicate with gray in vehicle popup menus if company has no vehicles of that type +- Feature: Clicking on the money brings up finances +- Feature: [OSX] Distribution now uses Apples package system for easier updates +- Feature: [OSX] Application is now a proper bundle application +- Change: Use save/ as save folder on win32 +- Change: Moved date in news window +- Change: Do not check if tiles around the clicked station is a station in order gui +- Change: Keep checkpoint button down after placing +- Change: Moved disk devices to bottom of list on win32 +- Change: Changed speedkey from Shift to Tab +- Change: Enhanced patches window with pages +- Change: Do not slow down trains as much on hills +- Change: Limit amount of radiotowers +- Change: Changed intro graphics +- Change: All player stuff is deleted when you load a scenario +- Fix: Aircraft terminal was not properly freed if aircraft crashed +- Fix: Fixed station acceptance bug +- Fix: Fixed buy shares in company +- Fix: Only deliver goods to stations that have a rating != 0 +- Fix: Added F hotkeys in scenario editor +- Fix: Unable to raise land next to signal +- Fix: Aircraft was shown instead of ships in player overview window +- Fix: Updated installer to take care of savegames more carefully +- Fix: Do not make a new subsidy if there already exists one that is currently active by a company +- Fix: Town directory sometimes showed huge numbers +- Fix: Fixed bugs when changing owners of items (pieces of rail were not always deleted), +- Fix: Fixed bug with large stations in train pathfinder +- Fix: Deleting docks does not produce land +- Fix: Deleting ship depot does not produce land +- Fix: Buoy is now treated as water when flooding +- Fix: Combo presignals bug fix +- Fix: Prevent going to 0,0 if airport/docks is deleted +- Fix: French town names had bad letters in them +- Fix: Order list when replacing train did not work properly +- Fix: Start in the middle of the map +- Fix: More error tolerant saveload code +- Fix: [OSX] Now runs even if SDL is not present on the system +- Fix: [OSX] Now runs on systems older than 10.3 +- Fix: [OSX] Altered compiler settings to make a completely stable app 0.2.1 (2004-04-04) ------------------------------------------------------------------------ -- Fix: copy orders crashed if you clicked on a wagon - Feature: 'A' hotkey now always opens autorail -- Change: Moved autorail button - Feature: X can be used to toggle transparent buildings -- Fix: don't show transparent buildings in intro -- Fix: installer doesn't delete savegames - Feature: Hotkeys 1-9 can be used to build a bridge in the bridge window - Feature: Added more hotkeys in the road build window +- Change: Moved autorail button +- Fix: Copy orders crashed if you clicked on a wagon +- Fix: Do not show transparent buildings in intro +- Fix: Installer does not delete savegames 0.2 (2004-04-03) ------------------------------------------------------------------------ -- Feature: autoscroll (only works to left/right) -- Feature: train checkpoints, instead of ttdpatch's nonstop handling -- Feature: ttdpatch compatible nonstop handling -- Fix: news window was moved strangely when resizing -- Fix: fixed sign drawing bug in max zoom out mode -- Feature: refresh rate configuration setting -- Feature: town directory sorting options -- Feature: pre-signals (ctrl-click on existing signals to change signal type) -- Feature: show semaphores on the right side if right-sided traffic -- Improvement: increased number of windows on screen to 20 -- Feature: patch options configuration window -- Fix: road vehicles sometimes getting stuck -- Feature: autorail build tool -- Feature: "show yearly finances window" option -- Feature: "signals on drive side" patch (by Michael Polnick) -- Fix: connecting tracks behind depot causing incorrect signal behavior -- Fix: save/load diskspace bug -- Feature: "show full date in statusbar" option -- Feature: italian translation (by duepixel) -- Feature: road and rail removal by dragging a selection -- Feature: news item for "train is unprofitable" -- Feature: news item for "train is lost" -- Feature: (win32 build) double size mode (ctrl-d to toggle) -- Fix: incorrect bridge cost for long bridges -- Feature: "multiple similar industries in close proximity" option -- Feature: "multiple industries per down" option -- Feature: "crossing tunnels" option -- Feature: order sharing and copying ("goto" on other vehicle to copy, ctrl+"goto" to share) -- Feature: remember last built rail type -- Feature: "debtmax" faster loan management with ctrl key -- Fix: disallow buoy in north corner -- Feature: "go to depot" orders option -- Feature: "long bridges" option -- Feature: "select goods" option -- Feature: "no train service" option -- Feature: "no inflation" option -- Improvement: (OSX build) now starts when doubleclicked -- Improvement: (OSX build) significant performance increase -- Improvement: optimized startup time -- Feature: automatically detect available resolutions -- Feature: "full load any" option, as in ttdpatch -- Feature: automatic detection of available language files -- Feature: German translation (by truesatan and wuntvor) -- Improvement: sorted savegame list -- Feature: finnish town names (by Jpl) -- Feature: remember custom difficulty settings -- Fix: shift key now increases game speed only when game window is active -- Fix: ctrl button now works with SDL driver -- Feature: configuration file system -- Feature: show vehicle speed in vehicle view windows -- Fix: incorrect weight displayed in "new trains" window -- Feature: train depot window now has horizontal scrollbar -- Feature: mammoth trains -- Fix: incorrect train running cost in newspaper -- Feature: on-the-fly language selection -- Feature: load old premade ttd maps (must be renamed to .sv1 extension) +- Feature: Autoscroll (only works to left/right) +- Feature: Train checkpoints, instead of TTDPatch's nonstop handling +- Feature: TTDPatch compatible nonstop handling +- Feature: Refresh rate configuration setting +- Feature: Town directory sorting options +- Feature: Pre-signals (ctrl-click on existing signals to change signal type) +- Feature: Show semaphores on the right side if right-sided traffic +- Feature: Patch options configuration window +- Feature: Autorail build tool +- Feature: "Show yearly finances window" option +- Feature: "Signals on drive side" patch +- Feature: "Show full date in statusbar" option +- Feature: Italian translation +- Feature: Road and rail removal by dragging a selection +- Feature: News item for "train is unprofitable" +- Feature: News item for "train is lost" +- Feature: [Win32] Double size mode (Ctrl-d to toggle) +- Feature: "Multiple similar industries in close proximity" option +- Feature: "Multiple industries per down" option +- Feature: "Crossing tunnels" option +- Feature: Order sharing and copying ("goto" on other vehicle to copy, ctrl+"goto" to share) +- Feature: Remember last built rail type +- Feature: "Debtmax" faster loan management with ctrl key +- Feature: "Go to depot" orders option +- Feature: "Long bridges" option +- Feature: "Select goods" option +- Feature: "No train service" option +- Feature: "No inflation" option +- Feature: Automatically detect available resolutions +- Feature: "Full load any" option, as in TTDPatch +- Feature: Automatic detection of available language files +- Feature: German translation +- Feature: Finnish town names +- Feature: Remember custom difficulty settings +- Feature: Configuration file system +- Feature: Show vehicle speed in vehicle view windows +- Feature: Train depot window now has horizontal scrollbar +- Feature: Mammoth trains +- Feature: On-the-fly language selection +- Feature: Load old premade ttd maps (must be renamed to .sv1 extension) +- Change: Increased number of windows on screen to 20 +- Change: [OSX] Start when doubleclicked +- Change: [OSX] Significant performance increase +- Change: Optimized startup time +- Change: Sorted savegame list +- Fix: News window was moved strangely when resizing +- Fix: Fixed sign drawing bug in max zoom out mode +- Fix: Road vehicles sometimes getting stuck +- Fix: Connecting tracks behind depot causing incorrect signal behavior +- Fix: Save/load diskspace bug +- Fix: Incorrect bridge cost for long bridges +- Fix: Disallow buoy in north corner +- Fix: Shift key now increases game speed only when game window is active +- Fix: Ctrl button now works with SDL driver +- Fix: Incorrect weight displayed in "new trains" window +- Fix: Incorrect train running cost in newspaper 0.1.4 (2004-03-25) ------------------------------------------------------------------------ -- Feature: crash submit system on win32 -- Fix: train smoke clouds -- Fix: train engine sounds -- Fix: play all sounds at 11025 hz (fixes certain sounds) -- Feature: autosave -- Fix: scenario editor desert button now makes desert instead of lighthouse -- Fix: creating random town in scenario editor crash -- Fix: candy bubbles sometimes caused crash -- Fix: wrong speed was shown in news window for some vehicles -- Fix: graph color bleeding -- Feature: build on coasts -- Feature: Allow building transmitters, lighthouses and company headquarters on slopes -- Feature: now builds on MacOSX -- Fix: arrow keys with SDL driver -- Change: new savegame format -- Change: new format for english.lng -- Fix: don't allow trains to road depots -- Fix: road vehicle was sometimes shown inside depot -- Fix: arrow keys in sdl driver were wrong -- Fix: endianness bugs in save/load -- Fix: now builds on FreeBSD -- Fix: screenshot feature now works -- Fix: rail foundations sometimes displayed unnecessarily -- Fix: minor AI bugs -- Fix: fixed industry sounds -- Feature: in-game resolution selection via settings window +- Feature: Crash submit system on win32 +- Feature: Autosave +- Feature: In-game resolution selection via settings window - Feature: Dutch town names - Feature: Added load game menu item -- Fix: bug where ship depots were very expensive -- Fix: BeOS build (by MYOB) -- Fix: yearly expenses data being the same for the past two game years -- Fix: adding songs to playlists other than custom1 and custom2 -- Fix: first and last tracks playing the wrong music -- Fix: Palette animation for SDL video (rob) -- Fix: Get remaining disk space on most Unix-en (rob) -- Fix: screen went black when resizing +- Feature: Build on coasts +- Feature: Allow building transmitters, lighthouses and company headquarters on slopes +- Feature: Now builds on MacOSX +- Change: New savegame format +- Change: New format for english.lng +- Fix: Train smoke clouds +- Fix: Train engine sounds +- Fix: Play all sounds at 11025 hz (fixes certain sounds) +- Fix: Scenario editor desert button now makes desert instead of lighthouse +- Fix: Creating random town in scenario editor crash +- Fix: Candy bubbles sometimes caused crash +- Fix: Wrong speed was shown in news window for some vehicles +- Fix: Graph color bleeding +- Fix: Arrow keys with SDL driver +- Fix: Do not allow trains to road depots +- Fix: Road vehicle was sometimes shown inside depot +- Fix: Arrow keys in sdl driver were wrong +- Fix: Endianness bugs in save/load +- Fix: Now builds on FreeBSD +- Fix: Screenshot feature now works +- Fix: Rail foundations sometimes displayed unnecessarily +- Fix: Minor AI bugs +- Fix: Fixed industry sounds +- Fix: Bug where ship depots were very expensive +- Fix: BeOS build +- Fix: Yearly expenses data being the same for the past two game years +- Fix: Adding songs to playlists other than custom1 and custom2 +- Fix: First and last tracks playing the wrong music +- Fix: Palette animation for SDL video +- Fix: Get remaining disk space on most Unix-en +- Fix: Screen went black when resizing 0.1.3 (2004-03-18) ------------------------------------------------------------------------ -- Fix: message options window -- Fix: company takeover/purchase +- Feature: Swedish town names +- Feature: More currencies +- Feature: Better window resizing/zooming +- Feature: Added goto road vehicle depot for road vehicle orders +- Feature: Possibility to use either semaphores or signals (Ctrl key) +- Feature: Limited the scrolling rate for year selector in scenario editor - Feature: Improved mouse scroll zooming -- Fix: station code so it's not possible to steal another player's temporarily deleted station -- Fix: subsidy owner bug when deleting station -- Fix: crash when deleting a bridge with a train on it - Feature: Larger stations and possibility to join stations -- Fix: missing candy initial cargo payment values -- Fix: goods and Food/FizzyDrinks subsidies -- Fix: graphical glitch in subsidies window -- Fix: take over company dialog was not shown properly -- Fix: crash if player windows were open while the company went bankrupt -- Fix: train slowness on hills -- Feature: swedish town names (patch by glottis) -- Feature: more currencies -- Feature: better window resizing/zooming -- Feature: added goto road vehicle depot for road vehicle orders -- Feature: possibility to use either semaphores or signals (Ctrl key) -- Feature: limited the scrolling rate for year selector in scenario editor +- Fix: Message options window +- Fix: Company takeover/purchase +- Fix: Station code so it is not possible to steal another player's temporarily deleted station +- Fix: Subsidy owner bug when deleting station +- Fix: Crash when deleting a bridge with a train on it +- Fix: Missing candy initial cargo payment values +- Fix: Goods and Food/FizzyDrinks subsidies +- Fix: Graphical glitch in subsidies window +- Fix: Take over company dialog was not shown properly +- Fix: Crash if player windows were open while the company went bankrupt +- Fix: Train slowness on hills 0.1.2 (2004-03-15) ------------------------------------------------------------------------ -- Feature: mouse wheel can be used to zoom in out on win32 -- Feature: implemented some support for resizing the window dynamically in win32 -- Fix: tunnel mouse icon for maglev and monorail +- Feature: Mouse wheel can be used to zoom in out on win32 +- Feature: Implemented some support for resizing the window dynamically in win32 +- Fix: Tunnel mouse icon for maglev and monorail 0.1.1 (2004-03-14) ------------------------------------------------------------------------ - Feature: Preliminary presignal support -- Add: external MIDI driver for unix version (by robertnorris) -- Add: DirectMusic driver for Win32 version -- Fix: problem where directories weren't displayed under Linux (by Markus) - Feature: Center windows properly in higher resolutions -- Add: "build tracks on slopes" feature -- Fix: colors in map window for routes - Feature: Command line -g flag now optionally takes a game to load -- Fix: road drive side +- Add: External MIDI driver for Unix version +- Add: DirectMusic driver for Win32 version +- Add: "build tracks on slopes" feature +- Fix: Problem where directories were not displayed under Linux +- Fix: Colors in map window for routes +- Fix: Road drive side - Fix: "Fund road construction" not clickable when unavailable diff --git a/src/newgrf.cpp b/src/newgrf.cpp index f8afcda323..f0b00fd129 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2038,8 +2038,8 @@ static ChangeInfoResult SoundEffectChangeInfo(uint sid, int numinfo, int prop, b case 0x0A: { // Override old sound uint orig_sound = grf_load_byte(&buf); - if (orig_sound >= GetNumSounds()) { - grfmsg(1, "SoundEffectChangeInfo: Original sound %d not defined (max %d)", orig_sound, GetNumSounds()); + if (orig_sound >= ORIGINAL_SAMPLE_COUNT) { + grfmsg(1, "SoundEffectChangeInfo: Original sound %d not defined (max %d)", orig_sound, ORIGINAL_SAMPLE_COUNT); } else { FileEntry *newfe = GetSound(sound); FileEntry *oldfe = GetSound(orig_sound); diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 44fd9f01cd..0c5fb050eb 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -235,14 +235,41 @@ static bool InitializeWindowsAndCaches() return true; } +typedef void (CDECL *SignalHandlerPointer)(int); +static SignalHandlerPointer _prev_segfault = NULL; +static SignalHandlerPointer _prev_abort = NULL; + +static void CDECL HandleSavegameLoadCrash(int signum); + +/** + * Replaces signal handlers of SIGSEGV and SIGABRT + * and stores pointers to original handlers in memory. + */ +static void SetSignalHandlers() +{ + _prev_segfault = signal(SIGSEGV, HandleSavegameLoadCrash); + _prev_abort = signal(SIGABRT, HandleSavegameLoadCrash); +} + +/** + * Resets signal handlers back to original handlers. + */ +static void ResetSignalHandlers() +{ + signal(SIGSEGV, _prev_segfault); + signal(SIGABRT, _prev_abort); +} + /** * Signal handler used to give a user a more useful report for crashes during * the savegame loading process; especially when there's problems with the * NewGRFs that are required by the savegame. - * @param unused well... unused + * @param signum received signal */ -void CDECL HandleSavegameLoadCrash(int unused) +static void CDECL HandleSavegameLoadCrash(int signum) { + ResetSignalHandlers(); + char buffer[8192]; char *p = buffer; p += seprintf(p, lastof(buffer), @@ -272,6 +299,9 @@ void CDECL HandleSavegameLoadCrash(int unused) } ShowInfo(buffer); + + SignalHandlerPointer call = signum == SIGSEGV ? _prev_segfault : _prev_abort; + if (call != NULL) call(signum); } /** @@ -322,9 +352,7 @@ static void FixOwnerOfRailTrack(TileIndex t) bool AfterLoadGame() { - typedef void (CDECL *SignalHandlerPointer)(int); - SignalHandlerPointer prev_segfault = signal(SIGSEGV, HandleSavegameLoadCrash); - SignalHandlerPointer prev_abort = signal(SIGABRT, HandleSavegameLoadCrash); + SetSignalHandlers(); TileIndex map_size = MapSize(); Company *c; @@ -433,8 +461,7 @@ bool AfterLoadGame() if (_networking && gcf_res != GLC_ALL_GOOD) { SetSaveLoadError(STR_NETWORK_ERR_CLIENT_NEWGRF_MISMATCH); /* Restore the signals */ - signal(SIGSEGV, prev_segfault); - signal(SIGABRT, prev_abort); + ResetSignalHandlers(); return false; } @@ -486,8 +513,7 @@ bool AfterLoadGame() if (_game_mode == GM_NORMAL && !ClosestTownFromTile(0, UINT_MAX)) { SetSaveLoadError(STR_NO_TOWN_IN_SCENARIO); /* Restore the signals */ - signal(SIGSEGV, prev_segfault); - signal(SIGABRT, prev_abort); + ResetSignalHandlers(); return false; } @@ -550,8 +576,7 @@ bool AfterLoadGame() SetStationGfx(t, gfx - 170 + GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET); } else { /* Restore the signals */ - signal(SIGSEGV, prev_segfault); - signal(SIGABRT, prev_abort); + ResetSignalHandlers(); return false; } SB(_m[t].m6, 3, 3, st); @@ -1801,8 +1826,7 @@ bool AfterLoadGame() bool ret = InitializeWindowsAndCaches(); /* Restore the signals */ - signal(SIGSEGV, prev_segfault); - signal(SIGABRT, prev_abort); + ResetSignalHandlers(); return ret; } diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp index 318f65f9d1..7153a98925 100644 --- a/src/saveload/misc_sl.cpp +++ b/src/saveload/misc_sl.cpp @@ -65,17 +65,17 @@ static const SaveLoadGlobVarList _date_desc[] = { SLEG_CONDVAR(_cur_tileloop_tile, SLE_FILE_U16 | SLE_VAR_U32, 0, 5), SLEG_CONDVAR(_cur_tileloop_tile, SLE_UINT32, 6, SL_MAX_VERSION), SLEG_VAR(_disaster_delay, SLE_UINT16), - SLEG_VAR(_station_tick_ctr, SLE_UINT16), + SLE_CONDNULL(2, 0, 119), SLEG_VAR(_random.state[0], SLE_UINT32), SLEG_VAR(_random.state[1], SLE_UINT32), - SLEG_CONDVAR(_cur_town_ctr, SLE_FILE_U8 | SLE_VAR_U32, 0, 9), - SLEG_CONDVAR(_cur_town_ctr, SLE_UINT32, 10, SL_MAX_VERSION), + SLE_CONDNULL(1, 0, 9), + SLE_CONDNULL(4, 10, 119), SLEG_VAR(_cur_company_tick_index, SLE_FILE_U8 | SLE_VAR_U32), SLEG_CONDVAR(_next_competitor_start, SLE_FILE_U16 | SLE_VAR_U32, 0, 108), SLEG_CONDVAR(_next_competitor_start, SLE_UINT32, 109, SL_MAX_VERSION), SLEG_VAR(_trees_tick_ctr, SLE_UINT8), SLEG_CONDVAR(_pause_game, SLE_UINT8, 4, SL_MAX_VERSION), - SLEG_CONDVAR(_cur_town_iter, SLE_UINT32, 11, SL_MAX_VERSION), + SLE_CONDNULL(4, 11, 119), SLEG_END() }; diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp index 812427b2c1..b3b76c7576 100644 --- a/src/saveload/oldloader_sl.cpp +++ b/src/saveload/oldloader_sl.cpp @@ -1260,7 +1260,7 @@ bool LoadOldVehicle(LoadgameState *ls, int num) uint type = ReadByte(ls); switch (type) { default: return false; - case 0x00 /* VEH_INVALID */: v = new (_current_vehicle_id) InvalidVehicle(); break; + case 0x00 /* VEH_INVALID */: v = new (_current_vehicle_id) InvalidVehicle(); break; case 0x25 /* MONORAIL */: case 0x20 /* VEH_TRAIN */: v = new (_current_vehicle_id) Train(); break; case 0x21 /* VEH_ROAD */: v = new (_current_vehicle_id) RoadVehicle(); break; @@ -1583,7 +1583,6 @@ static bool LoadTTDPatchExtraChunks(LoadgameState *ls, int num) } extern TileIndex _cur_tileloop_tile; -static uint32 _old_cur_town_ctr; static const OldChunks main_chunk[] = { OCL_ASSERT( OC_TTD, 0 ), OCL_ASSERT( OC_TTO, 0 ), @@ -1618,7 +1617,7 @@ static const OldChunks main_chunk[] = { OCL_ASSERT( OC_TTD, 0x4B26 ), OCL_ASSERT( OC_TTO, 0x3A20 ), - OCL_VAR ( OC_UINT32, 1, &_old_cur_town_ctr ), + OCL_NULL( 4 ), ///< town counter, no longer in use OCL_NULL( 2 ), ///< timer_counter, no longer in use OCL_NULL( 2 ), ///< land_code, no longer in use @@ -1707,8 +1706,7 @@ static const OldChunks main_chunk[] = { OCL_CNULL( OC_TTD, 144 ), ///< AI cargo-stuff, calculated in InitializeLandscapeVariables OCL_NULL( 2 ), ///< Company indexes of companies, no longer in use - - OCL_VAR ( OC_FILE_U8 | OC_VAR_U16, 1, &_station_tick_ctr ), + OCL_NULL( 1 ), ///< Station tick counter, no longer in use OCL_VAR ( OC_UINT8, 1, &_settings_game.locale.currency ), OCL_VAR ( OC_UINT8, 1, &_settings_game.locale.units ), @@ -1775,9 +1773,6 @@ bool LoadTTDMain(LoadgameState *ls) /* Fix some general stuff */ _settings_game.game_creation.landscape = _settings_game.game_creation.landscape & 0xF; - /* Remap some pointers */ - _cur_town_ctr = RemapTownIndex(_old_cur_town_ctr); - /* Fix the game to be compatible with OpenTTD */ FixOldTowns(); FixOldVehicles(); @@ -1814,8 +1809,6 @@ bool LoadTTOMain(LoadgameState *ls) _settings_game.game_creation.landscape = 0; _trees_tick_ctr = 0xFF; - _cur_town_ctr = RemapTownIndex(_old_cur_town_ctr); - if (!FixTTOMapArray() || !FixTTOEngines()) { DEBUG(oldloader, 0, "Conversion failed"); return false; diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index e166e93a0e..715ded17a7 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -195,9 +195,6 @@ static void Load_STNS() SaveLoad_STNS(st); } - - /* This is to ensure all pointers are within the limits of _stations_size */ - if (_station_tick_ctr > GetMaxStationIndex()) _station_tick_ctr = 0; } static void Save_ROADSTOP() diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp index 2b25356a71..c28f6acace 100644 --- a/src/saveload/town_sl.cpp +++ b/src/saveload/town_sl.cpp @@ -189,11 +189,6 @@ static void Load_TOWN() _total_towns++; } - - /* This is to ensure all pointers are within the limits of - * the size of the TownPool */ - if (_cur_town_ctr > GetMaxTownIndex()) - _cur_town_ctr = 0; } extern const ChunkHandler _town_chunk_handlers[] = { diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index a05987a27e..d721813ca4 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -698,7 +698,7 @@ void Load_VEHS() case VEH_AIRCRAFT: v = new (index) Aircraft(); break; case VEH_EFFECT: v = new (index) EffectVehicle(); break; case VEH_DISASTER: v = new (index) DisasterVehicle(); break; - case VEH_INVALID: v = new (index) InvalidVehicle(); break; + case VEH_INVALID: /* Savegame shouldn't contain invalid vehicles */ default: NOT_REACHED(); } diff --git a/src/sound.cpp b/src/sound.cpp index 4401fc67b1..c4874017bd 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -20,9 +20,6 @@ MusicFileSettings msf; /* Number of levels of panning per side */ #define PANNING_LEVELS 16 -/** The number of sounds in the original sample.cat */ -static const uint ORIGINAL_SAMPLE_COUNT = 73; - static void OpenBankFile(const char *filename) { FileEntry *fe = CallocT(ORIGINAL_SAMPLE_COUNT); diff --git a/src/sound_type.h b/src/sound_type.h index 8efc6a22a4..0879ff717c 100644 --- a/src/sound_type.h +++ b/src/sound_type.h @@ -110,4 +110,7 @@ enum SoundFx { template <> struct EnumPropsT : MakeEnumPropsT {}; typedef TinyEnumT SoundFxByte; +/** The number of sounds in the original sample.cat */ +static const uint ORIGINAL_SAMPLE_COUNT = 73; + #endif /* SOUND_TYPE_H */ diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 64358c48ca..ee47504565 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2086,8 +2086,8 @@ bool HasStationInUse(StationID station, CompanyID company) static CommandCost RemoveBuoy(Station *st, DoCommandFlag flags) { - /* XXX: strange stuff */ - if (!IsValidCompanyID(_current_company)) return_cmd_error(INVALID_STRING_ID); + /* XXX: strange stuff, allow clearing as invalid company when clearing landscape */ + if (!IsValidCompanyID(_current_company) && !(flags & DC_BANKRUPT)) return_cmd_error(INVALID_STRING_ID); TileIndex tile = st->dock_tile; @@ -2689,7 +2689,11 @@ static VehicleEnterTileStatus VehicleEnter_Station(Vehicle *v, TileIndex tile, i return VETSB_CONTINUE; } -/* this function is called for one station each tick */ +/** + * This function is called for each station once every 250 ticks. + * Not all stations will get the tick at the same time. + * @param st the station receiving the tick. + */ static void StationHandleBigTick(Station *st) { UpdateStationAcceptance(st, true); @@ -2829,11 +2833,6 @@ void OnTick_Station() { if (_game_mode == GM_EDITOR) return; - uint i = _station_tick_ctr; - if (++_station_tick_ctr > GetMaxStationIndex()) _station_tick_ctr = 0; - - if (IsValidStationID(i)) StationHandleBigTick(GetStation(i)); - Station *st; FOR_ALL_STATIONS(st) { StationHandleSmallTick(st); @@ -2842,6 +2841,7 @@ void OnTick_Station() * Station index is included so that triggers are not all done * at the same time. */ if ((_tick_counter + st->index) % 250 == 0) { + StationHandleBigTick(st); StationAnimationTrigger(st, st->xy, STAT_ANIM_250_TICKS); } } @@ -3201,8 +3201,6 @@ void InitializeStations() /* Clean the roadstop pool and create 1 block in it */ _RoadStop_pool.CleanPool(); _RoadStop_pool.AddBlockToPool(); - - _station_tick_ctr = 0; } static CommandCost TerraformTile_Station(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new) diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index c98c4abef5..13b5090dcd 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -589,8 +589,8 @@ static void ResetLandscapeConfirmationCallback(Window *w, bool confirmed) Station *st; FOR_ALL_STATIONS(st) { /* There can be buoys, remove them */ - if (IsBuoyTile(st->xy)) DoCommand(st->xy, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); - delete st; + if (st->IsBuoy() && IsBuoyTile(st->xy)) DoCommand(st->xy, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR); + if (st->facilities == 0) delete st; } /* The same for waypoints */ diff --git a/src/town.h b/src/town.h index 384ff9b3a2..00d1a8835f 100644 --- a/src/town.h +++ b/src/town.h @@ -352,8 +352,6 @@ Town *CalcClosestTownFromTile(TileIndex tile, uint threshold = UINT_MAX); extern Town *_cleared_town; extern int _cleared_town_rating; -extern uint32 _cur_town_ctr; -extern uint32 _cur_town_iter; void ResetHouses(); diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 484614dfb9..ec765b6418 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -683,17 +683,12 @@ void OnTick_Town() { if (_game_mode == GM_EDITOR) return; - /* Make sure each town's tickhandler invocation frequency is about the - * same - TOWN_GROWTH_FREQUENCY - independent on the number of towns. */ - for (_cur_town_iter += GetMaxTownIndex() + 1; - _cur_town_iter >= TOWN_GROWTH_FREQUENCY; - _cur_town_iter -= TOWN_GROWTH_FREQUENCY) { - uint32 i = _cur_town_ctr; - - if (++_cur_town_ctr > GetMaxTownIndex()) - _cur_town_ctr = 0; - - if (IsValidTownID(i)) TownTickHandler(GetTown(i)); + Town *t; + FOR_ALL_TOWNS(t) { + /* Run town tick at regular intervals, but not all at once. */ + if ((_tick_counter + t->index) % TOWN_GROWTH_FREQUENCY == 0) { + TownTickHandler(t); + } } } @@ -2751,8 +2746,6 @@ void InitializeTowns() s->cargo_type = CT_INVALID; } - _cur_town_ctr = 0; - _cur_town_iter = 0; _total_towns = 0; } diff --git a/src/variables.h b/src/variables.h index 3325369dc5..1187a90c18 100644 --- a/src/variables.h +++ b/src/variables.h @@ -18,10 +18,6 @@ VARDEF byte _age_cargo_skip_counter; /* Also save scrollpos_x, scrollpos_y and zoom */ VARDEF uint16 _disaster_delay; -/* Determines what station to operate on in the - * tick handler. */ -VARDEF uint16 _station_tick_ctr; - /* Determines how often to run the tree loop */ VARDEF byte _trees_tick_ctr;