Commit Graph

2630 Commits (d97f56b4e2b6159e696128932da28b89a13a30e0)
 

Author SHA1 Message Date
peter1138 d97f56b4e2 (svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden variables, as a window already contains this information. 19 years ago
peter1138 45f07e63d7 (svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, and added some more values. 19 years ago
peter1138 b1b6d15072 (svn r3169) Little bit of coding style fixing, and change from value to lengthof() 19 years ago
peter1138 7bbf614796 (svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/ 19 years ago
peter1138 12009af1c5 (svn r3167) - NewGRF: Start moving custom station code to separate files.
Rewrite handling of station classes.
          Allow for more than 8 station tile layouts.
          Start of code to unload custom stations.
19 years ago
peter1138 ce9f2fe823 (svn r3166) Constify read-only accesses of custom stations 19 years ago
tron 388c7df1d7 (svn r3163) Include header for toupper() 19 years ago
truelight 17b97b7b63 (svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named 'Message' already
exists on MorphOS
19 years ago
tron d431d15b34 (svn r3159) Remove the read-only variable _no_button_sound 19 years ago
peter1138 d6e462dfca (svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx) 19 years ago
peter1138 7ba8da9dc7 (svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars. 19 years ago
bjarni 1b3e626ff9 (svn r3156) -Fix: removed some cases where autoreplace windows were redrawn when nothing was changed
due to the FOR_ALL_VEHICLES(), redrawing those windows are slow
19 years ago
bjarni df6c48fdba (svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains
-Trains will now remember the length of stations it visits and sell cars
        when being autoreplaced if they became too long
        -If it needs to remove cars, then it starts from the front and sells
        all it can find until the train is short enough
        -This only works for trains, that knows the station length of the route
        so a full uninterrupted run is needed
        -a train needs 1-2 runs to detect if the shortest station is expanded
        -This feature can be turned on and off in the train replace window
        and each company can have it's own setting
        -NOTE: minor savegame version bump
19 years ago
Darkvater 1258ca0bf0 (svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P 19 years ago
Darkvater b76df91152 (svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish) 19 years ago
peter1138 760830da4e (svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or OpenTTD? (belugas) 19 years ago
Darkvater 5f281a25f2 (svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.
- Codechange: protect _endgame_perf_titles from out-of-bounds access.
19 years ago
peter1138 d91a4df8d7 (svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud() 19 years ago
peter1138 34c503cabf (svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes. 19 years ago
peter1138 1fecb61566 (svn r3147) Fix crash when building dual-head rail vehicles... 19 years ago
peter1138 b88564b6be (svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles. 19 years ago
peter1138 3610c0474b (svn r3145) Fix two off-by-one errors in building articulated rail vehicles. 19 years ago
bjarni a3c06f20fa (svn r3144) -Fix: a new train is now made if the front unit is an engine and the former front engine is moved away (Meush) 19 years ago
bjarni 6afe6a21ed (svn r3143) -Codechange: greatly increased speed when allocating vehicles
This increases the speed greatly when allocating more than one at a time
        (planes, artic engines, cloning...) and when adding another block of 
        vehicles to the vehicle pool (adding 512 vehicles each time)
19 years ago
peter1138 acf4b5181d (svn r3142) Remove a now invalid case fall-through and use helper function instead of map access. 19 years ago
peter1138 4c6a67a723 (svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB() 19 years ago
peter1138 1ad139c9e0 (svn r3140) Building/removing a waypoint could leave old PBS reservations behind. This ensures they are cleared. 19 years ago
peter1138 0d9379f904 (svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders. 19 years ago
bjarni 3c1dd61bf1 (svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars
Now it gives "too many vehicles" error message instead
	To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static
19 years ago
bjarni ce713fe014 (svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a vehicle entered a depot even though the goto depot was canceled
this assert could be reached by clicking on the goto depot button to cancel goto depot from the orders and the vehicle
	still entered the depot. The flags in that case would not be "normal" anymore. An additional check is added to prevent this
19 years ago
bjarni 7715deec3d (svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles
currently this applies to planes and multiheaded train engines (no more lost airmail)
	added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is
	when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo
19 years ago
tron 170de2019a (svn r3135) Use symbolic names in the tables, which hold the information about accepted goods of industry tiles, instead of magic numbers 19 years ago
tron 8ae6cea592 (svn r3134) Forgot to commit one file in r3133 19 years ago
tron 42f5ec371e (svn r3133) - static, const
- remove long unused stuff and bogus comments
- complement struct typedefs
- remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables
19 years ago
peter1138 8ece7ab107 (svn r3132) -NewGRF: support positioning of rail vehicle visual effects. 19 years ago
peter1138 481336895b (svn r3131) Enable panning of audio relative to screen position. 19 years ago
peter1138 748cde25c4 (svn r3130) Calculate shorter wagon lengths more precisely in train depot window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now. 19 years ago
bjarni e40dea16e9 (svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
this is not the same bug as in rev 3128, which means you actually paid 3 times. Now it pays correctly
19 years ago
bjarni 6af8bd605e (svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money 19 years ago
bjarni 069ff61ef5 (svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail to stop when autoreplacing
this would result in the construction of a new vehicle while the old one just continued
	added an assert to make sure it's always stopped before trying to sell the old vehicle
19 years ago
peter1138 4f5dee9e58 (svn r3126) Autoreplace: Only the first vehicle in a chain should be marked as entering a depot, so call moved out of DoVehicleTrigger loop. 19 years ago
tron 47f0e22853 (svn r3125) Symbolic names for skiping sprites and the end of the sprite list 19 years ago
peter1138 44f06c8bf0 (svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train. 19 years ago
Darkvater bf0d4ef36f (svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx 19 years ago
Darkvater 1681c231d6 (svn r3122) - Fix (regression): recent change to strgen which 'fixed' all strings with wrong plural forms. Thanks for glx for pointing this out (after I changed his original patch which was correct..whohoo braindeadness; here I come) 19 years ago
miham 7a2f72d3fc (svn r3121) [Translations] Moved turkish.txt from unfinished to stable 19 years ago
tron b2bd21c9a2 (svn r3120) Update the turkish translation, about 2000 strings.
Many thanks to jnmbk for his effort!
19 years ago
tron 00037cb9c9 (svn r3119) Don't pretend to be the Windows version of TTD all the time. When being asked answer according to _use_dos_palette. (Suggestion by Belugas) 19 years ago
tron 6a585f5430 (svn r3118) Name 3 palette modifiers properly (belugas) 19 years ago
miham 28f529f56a (svn r3117) [Translations] Updated french 19 years ago