summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-11-15(svn r3183) Remove an unused declaration and properly declare ↵tron
CheckExternalFiles() in a header
2005-11-14(svn r3182) Fix braino in r3181tron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3180) Replace some magic numbers by symbolic namestron
2005-11-14(svn r3179) - RandomRange() and RandomTile() instead of home brewed versionstron
- CHANCE*() instead of mumbling strange numbers
2005-11-14(svn r3178) - Codechange: move static _dropdown_* vars into the window ↵peter1138
custom data, giving var1 and var2 more meaningful names.
2005-11-14(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-11-13(svn r3176) Use proper types, not some variants of inttron
2005-11-13(svn r3175) - Updated OS/2 project file to include station_newgrf.corudge
2005-11-13(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing ↵Darkvater
sourcefile(s) from project)
2005-11-13(svn r3173) Use the trinary operator and switch to improve readabilitytron
Also align short cases nicely
2005-11-13(svn r3172) static, consttron
2005-11-12(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden ↵peter1138
variables, as a window already contains this information.
2005-11-12(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, ↵peter1138
and added some more values.
2005-11-12(svn r3169) Little bit of coding style fixing, and change from value to ↵peter1138
lengthof()
2005-11-12(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/peter1138
2005-11-12(svn r3167) - NewGRF: Start moving custom station code to separate files.peter1138
Rewrite handling of station classes. Allow for more than 8 station tile layouts. Start of code to unload custom stations.
2005-11-11(svn r3166) Constify read-only accesses of custom stationspeter1138
2005-11-10(svn r3163) Include header for toupper()tron
2005-11-10(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named ↵truelight
'Message' already exists on MorphOS
2005-11-09(svn r3159) Remove the read-only variable _no_button_soundtron
2005-11-09(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk ↵peter1138
data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)
2005-11-09(svn r3157) - Feature: Added patch option to link the terraform toolbar to ↵peter1138
the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
2005-11-08(svn r3156) -Fix: removed some cases where autoreplace windows were redrawn ↵bjarni
when nothing was changed due to the FOR_ALL_VEHICLES(), redrawing those windows are slow
2005-11-07(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too ↵bjarni
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
2005-11-07(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at ↵Darkvater
a typo, shall we :P
2005-11-07(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario ↵Darkvater
editor (MeusH-ish)
2005-11-07(svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or ↵peter1138
OpenTTD? (belugas)
2005-11-07(svn r3151) - Fix: showing the highscore might crash the game with an ↵Darkvater
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.
2005-11-07(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()peter1138
2005-11-06(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification ↵peter1138
by cargo classes.
2005-11-06(svn r3147) Fix crash when building dual-head rail vehicles...peter1138
2005-11-06(svn r3146) Avoid use of variable size declared arrays when allocating ↵peter1138
articulated rail vehicles.
2005-11-06(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.peter1138
2005-11-06(svn r3144) -Fix: a new train is now made if the front unit is an engine and ↵bjarni
the former front engine is moved away (Meush)
2005-11-05(svn r3143) -Codechange: greatly increased speed when allocating vehiclesbjarni
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)
2005-11-05(svn r3142) Remove a now invalid case fall-through and use helper function ↵peter1138
instead of map access.
2005-11-05(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with ↵peter1138
appropriate GB()
2005-11-05(svn r3140) Building/removing a waypoint could leave old PBS reservations ↵peter1138
behind. This ensures they are cleared.
2005-11-05(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is ↵peter1138
used, for example, by coal tenders.
2005-11-05(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to ↵bjarni
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
2005-11-04(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a ↵bjarni
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
2005-11-04(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more ↵bjarni
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
2005-11-04(svn r3135) Use symbolic names in the tables, which hold the information ↵tron
about accepted goods of industry tiles, instead of magic numbers
2005-11-04(svn r3134) Forgot to commit one file in r3133tron
2005-11-04(svn r3133) - static, consttron
- remove long unused stuff and bogus comments - complement struct typedefs - remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables
2005-11-04(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.peter1138
2005-11-04(svn r3131) Enable panning of audio relative to screen position.peter1138
2005-11-04(svn r3130) Calculate shorter wagon lengths more precisely in train depot ↵peter1138
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.
2005-11-03(svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for ↵bjarni
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