tron
d09db07ca1
(svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection
19 years ago
tron
7b69def47a
(svn r3203) Directly use the currency symbols for pounds and yen in the language files like it's already done for dollar and euro
19 years ago
tron
3c0179dd07
(svn r3202) If cascade -> switch
19 years ago
tron
2001577f8f
(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early
19 years ago
tron
6f82be949f
(svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite
19 years ago
tron
e26b1ded99
(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4
19 years ago
tron
839cb586a7
(svn r3198) Rewrite the company league drawing routine for better readability
19 years ago
tron
67dcf1ffd8
(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in
19 years ago
tron
3bdb92446c
(svn r3196) Use structs instead of magic offsets into arrays
19 years ago
tron
db012c135e
(svn r3195) Use bitfields instead of explicit shifting/masking
19 years ago
tron
45186b1601
(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill
19 years ago
tron
c87511026a
(svn r3193) Staticise the vehicle position hash
19 years ago
tron
1d9e838a2b
(svn r3192) Split the surname list into two lists (non-toyland/toyland) and use lengthof() to get the number of names instead of using magic numbers
19 years ago
tron
ce398adf8e
(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG
19 years ago
tron
7289cc7c07
(svn r3190) Turn some loops into canonical for loop form
19 years ago
tron
ea5672ec8f
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
19 years ago
tron
e901aefb74
(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR
19 years ago
tron
3848d103c8
(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing
19 years ago
tron
ca1dfe94d2
(svn r3186) Unnecessary casts and truncation
19 years ago
tron
8a3587fa28
(svn r3185) const
19 years ago
tron
84a16a0b30
(svn r3184) GB/SB
19 years ago
tron
ba9157fbbc
(svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header
19 years ago
tron
0e075e271e
(svn r3182) Fix braino in r3181
19 years ago
tron
9d0e7b6458
(svn r3181) -Bracing
...
-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
19 years ago
tron
a7843e1546
(svn r3180) Replace some magic numbers by symbolic names
19 years ago
tron
6509e42db3
(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
...
- CHANCE*() instead of mumbling strange numbers
19 years ago
peter1138
bb82872bbf
(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.
19 years ago
tron
524fd25cbd
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
19 years ago
tron
b34de09e62
(svn r3176) Use proper types, not some variants of int
19 years ago
orudge
39ba8235b2
(svn r3175) - Updated OS/2 project file to include station_newgrf.c
19 years ago
Darkvater
c7e22d0eb0
(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing sourcefile(s) from project)
19 years ago
tron
53f00c8f9d
(svn r3173) Use the trinary operator and switch to improve readability
...
Also align short cases nicely
19 years ago
tron
81e5b16d71
(svn r3172) static, const
19 years ago
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