frosch
69107b00cc
(svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead.
16 years ago
frosch
8745a30971
(svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead.
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
smatz
88b8ac8ba7
(svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead
16 years ago
smatz
fc63e37616
(svn r16155) -Codechange: remove MarkTileDirty, use MarkTileDirtyByTile instead
16 years ago
smatz
3869fb798c
(svn r16146) -Codechange: use faster algorithm in SetSelectionTilesDirty(). Up to 1000 times faster when large area is selected
16 years ago
smatz
f09807bfe1
(svn r16146) -Codechange: use faster algorithm in SetSelectionTilesDirty(). Up to 1000 times faster when large area is selected
16 years ago
rubidium
502a496870
(svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though
16 years ago
rubidium
ecdb5f46a7
(svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though
16 years ago
rubidium
5c5b357043
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
4caeb3e2b4
(svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail
16 years ago
rubidium
d02cdd91ca
(svn r16095) -Change/Feature-ish: make the first 4 rail building tools behave more like autorail
16 years ago
rubidium
e88cb7f70f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
16 years ago
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
16 years ago
rubidium
5f98da2ece
(svn r16086) -Codechange: magic numbers substitutes by enums and some type safety
16 years ago
rubidium
b66783afab
(svn r16086) -Codechange: magic numbers substitutes by enums and some type safety
16 years ago
rubidium
e2dfa4022e
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
16 years ago
rubidium
e2e95af945
(svn r15908) -Fix: off-by-one in viewport strings/flags; left + width != right
16 years ago
rubidium
927c293bb1
(svn r15824) -Fix: determine the actual length of the strings to draw in the viewport
16 years ago
rubidium
4012549c5e
(svn r15824) -Fix: determine the actual length of the strings to draw in the viewport
16 years ago
rubidium
06dda194e5
(svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
...
-Codechange: use the new string drawing API for the viewport.
16 years ago
rubidium
4eaf4e6182
(svn r15804) -Fix (r15796): viewport strings weren't properly 'rendered'.
...
-Codechange: use the new string drawing API for the viewport.
16 years ago
smatz
d28895c88b
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
16 years ago
smatz
af293142fe
(svn r15725) -Fix: centering on a vehicle didn't respect its z coordinate
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
yexo
9352acf271
(svn r15593) -Change: the background of the the waypoint sign is now in the company color.
16 years ago
yexo
dbec2ec628
(svn r15593) -Change: the background of the the waypoint sign is now in the company color.
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
8dae160d0f
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
412f93b877
(svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed.
16 years ago
rubidium
856f26e35b
(svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed.
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
Yexo
a7ff5d4aae
(svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming.
16 years ago
Yexo
0fa6e050e4
(svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming.
16 years ago
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
16 years ago
Yexo
db3ee34b44
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
16 years ago
Yexo
bc5c4a2ae2
(svn r15151) -Fix: tile 0 can now be highlighted as error tile
16 years ago
Yexo
8b04787d09
(svn r15151) -Fix: tile 0 can now be highlighted as error tile
16 years ago
Yexo
27507f91be
(svn r15150) -Fix: Don't highlight tiles outside the visible map.
16 years ago
Yexo
49e69399a6
(svn r15150) -Fix: Don't highlight tiles outside the visible map.
16 years ago
frosch
7014833641
(svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus)
16 years ago
frosch
4780c73224
(svn r15065) -Change (r14919): Allow to select a new station location by ctrl-clicking while distant-join window is open. (PhilSophus)
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
66876e890f
(svn r14947) -Fix [FS#2519]: vehicle following did not update the location from where to smooth scroll, thus any new viewport center would smooth scroll from the location where you were just before you started following the vehicle
16 years ago
rubidium
dc1f1664fd
(svn r14947) -Fix [FS#2519]: vehicle following did not update the location from where to smooth scroll, thus any new viewport center would smooth scroll from the location where you were just before you started following the vehicle
16 years ago
rubidium
c0e7434f38
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
cda853872a
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
7a5798695d
(svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
16 years ago
rubidium
c8c61e36bd
(svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
16 years ago
rubidium
7b4fba0f89
(svn r14905) -Fix (r14899): in some corner cases already freed memory could be read.
16 years ago
rubidium
c71862174a
(svn r14905) -Fix (r14899): in some corner cases already freed memory could be read.
16 years ago
rubidium
567b262901
(svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
...
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
rubidium
84dee1e738
(svn r14899) -Feature: remove the window limit, but leave a configurable limit on the number of non-sticky non-vital windows.
...
-Fix [FS#2499]: crashes/misbehaviours when (almost) all windows are stickied.
16 years ago
smatz
a1d3c90af9
(svn r14884) -Codechange: simplify code responsible for opening vehicle view windows
16 years ago
smatz
1ada1a4ff2
(svn r14884) -Codechange: simplify code responsible for opening vehicle view windows
16 years ago
rubidium
aa6c7e8574
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
16 years ago
rubidium
19edb3ccc3
(svn r14880) -Codechange: make it clear which way the FOR_ALL_WINDOWS goes (from back to front or vice versa) and make it iterate over the Window* instead of Window**.
16 years ago
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
smatz
7a2adef859
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
16 years ago
smatz
21308de6cb
(svn r14806) -Fix: MarkAllViewportsDirty() didn't mark dirty whole area when zoomed out, visible by aircraft leaving trails sometimes
16 years ago
rubidium
d3144b6f04
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
16 years ago
rubidium
1357b0a4c2
(svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo)
16 years ago
rubidium
e7bb5c63a4
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
16 years ago
rubidium
a999bb3227
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
16 years ago
rubidium
3ee482ca1b
(svn r14461) -Document: add some doxygen comments (Albert)
16 years ago
rubidium
f1f5b248c2
(svn r14461) -Document: add some doxygen comments (Albert)
16 years ago
smatz
d26e500ef4
(svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash
16 years ago
smatz
b4a307d0bb
(svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
frosch
b588578bcc
(svn r14409) -Codechange: Simplify a loop and correct a comment.
16 years ago
frosch
a370f32c15
(svn r14409) -Codechange: Simplify a loop and correct a comment.
16 years ago
rubidium
c358955127
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
16 years ago
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
16 years ago
smatz
2c58a87f4c
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
16 years ago
smatz
cbe397388f
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
16 years ago
frosch
a7bc5f2d0d
(svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile.
16 years ago
frosch
5216223f45
(svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile.
16 years ago
belugas
d096431936
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
16 years ago
belugas
77ee099212
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
16 years ago
smatz
d097276022
(svn r13991) -Codechange: draw text effects after all other signs
16 years ago
smatz
8fba4705f0
(svn r13991) -Codechange: draw text effects after all other signs
16 years ago
frosch
196268b7ff
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
16 years ago
frosch
0fc769bb6c
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
16 years ago
smatz
60cd53c375
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
16 years ago
smatz
5e2c2db235
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
16 years ago
skidd13
ad9b19b77a
(svn r13575) -Codechange: Move small vector to core since it fits better in there
...
-Codechange: convert smallvector from struct to class
17 years ago
skidd13
2f65d35ead
(svn r13575) -Codechange: Move small vector to core since it fits better in there
...
-Codechange: convert smallvector from struct to class
17 years ago
skidd13
1818d5c2e1
(svn r13573) -Codechange: Use smallvec class functions instead of class members
17 years ago
skidd13
e7f2765f4c
(svn r13573) -Codechange: Use smallvec class functions instead of class members
17 years ago
frosch
e04e2822b8
(svn r13538) -Fix (r12740)[FS#2087]: ChildSprites of foundations are not necessarily consecutive.
17 years ago
frosch
0fff18b044
(svn r13538) -Fix (r12740)[FS#2087]: ChildSprites of foundations are not necessarily consecutive.
17 years ago
smatz
4c7adc8009
(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)
17 years ago
smatz
421a040e89
(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)
17 years ago
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
rubidium
4a3dd37582
(svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp.
17 years ago
rubidium
f2869bb7db
(svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp.
17 years ago
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
rubidium
8560c8f16f
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
17 years ago
rubidium
c3fd582c55
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
17 years ago
rubidium
ad6e52080c
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
17 years ago
rubidium
87015f5b63
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
17 years ago
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
17 years ago
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
17 years ago
rubidium
2704b12f2b
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
17 years ago
rubidium
c81a333cb6
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
17 years ago
rubidium
6d880ada7f
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
17 years ago
rubidium
5ae795953a
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
17 years ago
glx
a1a04fcc61
(svn r13055) -Codechange: make a class of SmallMapWindow.
17 years ago
glx
ad19bf105a
(svn r13055) -Codechange: make a class of SmallMapWindow.
17 years ago
glx
dacd2c5de8
(svn r13047) -Codechange: remove vp_d
17 years ago
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
17 years ago
rubidium
2ac412375c
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
17 years ago
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
17 years ago
rubidium
8b9ffbe158
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
17 years ago
rubidium
cabd771fc0
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
17 years ago
rubidium
c28ce39e3c
(svn r12987) -Codechange: split viewport and tile selection.
17 years ago
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
17 years ago
rubidium
c27f3cfa62
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
17 years ago
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
17 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
rubidium
0083ce9e1b
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
17 years ago
rubidium
cb680474c3
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
17 years ago
rubidium
51c7ba39a4
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
17 years ago
rubidium
24b5c91039
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
17 years ago
rubidium
081f627018
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
17 years ago
rubidium
c84fe27ca9
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
17 years ago
rubidium
6d25cd50dd
(svn r12771) -Codechange: remove more from variables.h.
17 years ago
rubidium
7edc9b65c6
(svn r12771) -Codechange: remove more from variables.h.
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
2752568d61
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
17 years ago
rubidium
c31287206d
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
17 years ago
rubidium
61074c4bf8
(svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this.
17 years ago
rubidium
1367c90161
(svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this.
17 years ago
rubidium
34f4150b15
(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
17 years ago
rubidium
4703eb2036
(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
17 years ago
rubidium
1eac80f840
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
17 years ago
rubidium
5254131d9c
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
17 years ago
smatz
71ebefbbd7
(svn r12738) -Fix (r12736): some sprites could be left unsorted
17 years ago
smatz
1f22f47b3b
(svn r12738) -Fix (r12736): some sprites could be left unsorted
17 years ago
peter1138
efdf8b8c8a
(svn r12737) -Codechange: Replace vector with a cut down class to allocate space as necessary. This avoids copying data around for vector's push_back() function.
17 years ago
peter1138
7957bdde13
(svn r12737) -Codechange: Replace vector with a cut down class to allocate space as necessary. This avoids copying data around for vector's push_back() function.
17 years ago
rubidium
47365fee11
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
17 years ago
rubidium
208dd15c91
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
17 years ago
rubidium
878a7c9ab1
(svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw.
17 years ago
rubidium
6ab158f9d9
(svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw.
17 years ago
rubidium
26dcf25238
(svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw.
17 years ago
rubidium
0c9120a882
(svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw.
17 years ago
rubidium
8ab49198b9
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
17 years ago
rubidium
9a73b698d4
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
17 years ago
smatz
fcf4a7067d
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
smatz
febc5150c9
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
17 years ago
rubidium
571ba97f56
(svn r12536) -Codechange: some stack allocations were too large for NDS, so use the SmallStackSafeStackAlloc wrapper. Allocate on the stack by default and on the heap for NDS (or other devices that have a very small stack).
17 years ago
rubidium
8e83627991
(svn r12536) -Codechange: some stack allocations were too large for NDS, so use the SmallStackSafeStackAlloc wrapper. Allocate on the stack by default and on the heap for NDS (or other devices that have a very small stack).
17 years ago
rubidium
b488fe1929
(svn r12501) -Codechange: split signs.h.
17 years ago
rubidium
a0895d57fa
(svn r12501) -Codechange: split signs.h.
17 years ago
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
2edd403656
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
5ab921feaa
(svn r12439) -Fix [FS#1871]: do not 'disable' the drawing of autorail overlays when the tile is 'error'-marked (red pulsating selection). Patch by Icosikai.
17 years ago
rubidium
3d03eab9bc
(svn r12439) -Fix [FS#1871]: do not 'disable' the drawing of autorail overlays when the tile is 'error'-marked (red pulsating selection). Patch by Icosikai.
17 years ago
smatz
d7a72c7002
(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)
17 years ago
smatz
291931bf50
(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)
17 years ago
belugas
6c93216641
(svn r12140) -Codechange: A bit of code style fixes(Geektoo).
17 years ago
belugas
739b118c6b
(svn r12140) -Codechange: A bit of code style fixes(Geektoo).
17 years ago
rubidium
bdadefd0d2
(svn r12044) -Fix [FS#1741]: crash when centering on a vehicle (aircraft) that is outside of the map.
17 years ago
rubidium
612ba5c787
(svn r12044) -Fix [FS#1741]: crash when centering on a vehicle (aircraft) that is outside of the map.
17 years ago
frosch
d4dc5e0775
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
17 years ago
frosch
6f6708e844
(svn r11983) -Codechange: Add some helper functions for slopes and use them.
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
dc87b05e8c
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
c004cc1fd9
(svn r11801) -Codechange: remove some unneeded includes from some header files.
17 years ago
rubidium
6c954cad5f
(svn r11801) -Codechange: remove some unneeded includes from some header files.
17 years ago
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
0e517fe023
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
17 years ago
rubidium
a773d45885
(svn r11684) -Codechange: split gfx.h in a type and functional header.
17 years ago
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
17 years ago
rubidium
8f0e68285b
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
17 years ago
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
8bfbfd0031
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
17 years ago
rubidium
8896bea306
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
17 years ago
rubidium
8ce9c5f29b
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
17 years ago
rubidium
ec90ce7e98
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
17 years ago
rubidium
2160338662
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
17 years ago
rubidium
a0f2366e40
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
17 years ago
glx
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
17 years ago
glx
c21f588a14
(svn r11588) -Codechange: use the new member introduced in r11551
17 years ago
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
17 years ago
rubidium
527b72749d
(svn r11555) -Codechange: use the new members introduced in r11551.
17 years ago
skidd13
f56579e0d9
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
17 years ago
skidd13
734b22e070
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
17 years ago
skidd13
815b8d8df1
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
17 years ago
skidd13
bf959f926f
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
17 years ago
rubidium
6c027d98b9
(svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level.
17 years ago
rubidium
221e9271c5
(svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level.
17 years ago
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
eeaa348f8b
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
6801cceda1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
5c31a973a1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
f4a5c80d71
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
17 years ago
skidd13
50bfe1a19d
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
17 years ago
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
skidd13
8be526e499
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
smatz
32802f863b
(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode
17 years ago
smatz
2686901d84
(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode
17 years ago
smatz
001179990d
(svn r11465) -Fix: more user-friedly placement in X and Y directions (most noticeable with autoroad)
17 years ago
smatz
cd3c16d789
(svn r11465) -Fix: more user-friedly placement in X and Y directions (most noticeable with autoroad)
17 years ago
smatz
d749fda9e4
(svn r11456) -Fix [FS#1412] (r10070): Viewport is bound to its top-left corner
17 years ago
smatz
b48c5a3c92
(svn r11456) -Fix [FS#1412] (r10070): Viewport is bound to its top-left corner
17 years ago
rubidium
ecdb16de42
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
17 years ago
rubidium
dace4686c0
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
17 years ago
rubidium
c5a9fd4559
(svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ.
17 years ago
rubidium
59a6e40ed2
(svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ.
17 years ago
belugas
f26a591e6c
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
...
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
17 years ago
belugas
f55fdfb7c4
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
...
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
17 years ago
belugas
e2c0f1faf7
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
...
Patch heavily based on BiBB's work (FS#1383)
17 years ago
belugas
56e6282f2f
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
...
Patch heavily based on BiBB's work (FS#1383)
17 years ago
rubidium
410b4fae00
(svn r11318) -Codechange: add the actual support for drawing selections on halftiles, r11316 just added the things needed to load the sprites. Patch by frosch.
17 years ago
rubidium
0c845bdd27
(svn r11318) -Codechange: add the actual support for drawing selections on halftiles, r11316 just added the things needed to load the sprites. Patch by frosch.
17 years ago
rubidium
99266a173c
(svn r11313) -Codechange: prepare several pieces of code so the can handle some new slopes. Patch by frosch.
17 years ago
rubidium
5289aa2010
(svn r11313) -Codechange: prepare several pieces of code so the can handle some new slopes. Patch by frosch.
17 years ago
rubidium
8b5b748029
(svn r11261) -Codechange: Draw selection sprites (HT_RECT, HT_POINT, HT_RAIL) on foundations as ChildSprite of the foundation, not as single ParentSprite. Patch by frosch.
17 years ago
rubidium
486e4bbca2
(svn r11261) -Codechange: Draw selection sprites (HT_RECT, HT_POINT, HT_RAIL) on foundations as ChildSprite of the foundation, not as single ParentSprite. Patch by frosch.
17 years ago
rubidium
d92dbbb029
(svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch.
17 years ago
rubidium
6e7402a1c5
(svn r11212) -Codechange: add support for drawing parts of sprites. Patch by frosch.
17 years ago
rubidium
c30544f8bc
(svn r11210) -Codechange: unify the way that selection sprites are drawn. Patch by frosch.
17 years ago
rubidium
1e73368d48
(svn r11210) -Codechange: unify the way that selection sprites are drawn. Patch by frosch.
17 years ago
rubidium
7adec5da36
(svn r11190) -Fix: make snowy roofs of (newgrf) houses also transparent.
17 years ago
rubidium
a2256f6b0f
(svn r11190) -Fix: make snowy roofs of (newgrf) houses also transparent.
17 years ago
rubidium
d464d7587d
(svn r11174) -Codechange: add possibility to show the bounding boxes of sprites using CTRL-B so one can get a better understanding of the used bounding boxes to fix the glitches that still exist. Patch by frosch.
...
Note that this is not completely glitch free, bounding boxes sometimes aren't removed properly. This is due to the fact that the bounding boxes sometimes are larger than the sprite, which causes a smaller part than the bounding box to be redrawn. This is NOT a bug, but a known implementation limit as we do not want to slow down normal games so the debug graphics are always 100% correct.
17 years ago
rubidium
8564e12554
(svn r11174) -Codechange: add possibility to show the bounding boxes of sprites using CTRL-B so one can get a better understanding of the used bounding boxes to fix the glitches that still exist. Patch by frosch.
...
Note that this is not completely glitch free, bounding boxes sometimes aren't removed properly. This is due to the fact that the bounding boxes sometimes are larger than the sprite, which causes a smaller part than the bounding box to be redrawn. This is NOT a bug, but a known implementation limit as we do not want to slow down normal games so the debug graphics are always 100% correct.
17 years ago
rubidium
db769e490c
(svn r11147) -Fix [FS#1247] (r11105): reallow bounding boxes with x/y/z-extent 0. Some NewGRFs need them. Patch by frosch.
17 years ago
rubidium
4d8f4bd1c0
(svn r11147) -Fix [FS#1247] (r11105): reallow bounding boxes with x/y/z-extent 0. Some NewGRFs need them. Patch by frosch.
17 years ago
rubidium
5c9553d48b
(svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
17 years ago
rubidium
7d325672eb
(svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
17 years ago
rubidium
9478b2cff8
(svn r11105) -Codechange [FS#1223]: add some support for tuning of the bounding boxes for some special cases (like tunnels and bridges). Patch by frosch.
17 years ago
rubidium
b25c661ce6
(svn r11105) -Codechange [FS#1223]: add some support for tuning of the bounding boxes for some special cases (like tunnels and bridges). Patch by frosch.
17 years ago
rubidium
f68051d19b
(svn r11104) -Fix: bounding boxes also overlap when the min of a bounding box is equal to the max of another bounding box. Patch by frosch.
17 years ago
rubidium
6762862edc
(svn r11104) -Fix: bounding boxes also overlap when the min of a bounding box is equal to the max of another bounding box. Patch by frosch.
17 years ago
rubidium
b62d995ce8
(svn r11103) -Codechange: remove pointless comparison as it can never ever be true (unless you've got at least 3 bit errors and then you're screwed anyway). Patch by frosch.
17 years ago
rubidium
faa183a060
(svn r11103) -Codechange: remove pointless comparison as it can never ever be true (unless you've got at least 3 bit errors and then you're screwed anyway). Patch by frosch.
17 years ago
belugas
5ec047d6b7
(svn r11094) -Documentation: Add comments on viewport structures and change an obscure variable name to something a little more meaningfull.
...
Heavily based of frosch's work (FS#1223)
17 years ago
belugas
1970e657a3
(svn r11094) -Documentation: Add comments on viewport structures and change an obscure variable name to something a little more meaningfull.
...
Heavily based of frosch's work (FS#1223)
17 years ago
rubidium
0ca9fd7dc2
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
17 years ago
rubidium
65f9a0f21a
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
17 years ago
rubidium
732845440a
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
...
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
17 years ago
rubidium
aba867d78d
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const.
...
-Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
17 years ago
rubidium
a6a9968d16
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
17 years ago
rubidium
5d628e6135
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
17 years ago
rubidium
a26ef1ee3a
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
17 years ago
rubidium
02ab86631e
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
17 years ago
rubidium
7fe3635cdb
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
17 years ago
rubidium
b290268645
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
17 years ago
belugas
3a46ed0dd4
(svn r10343) -Cleanup: Add documentation of functions and code-style fix.
...
Thanks of 45 degree patch for bringing it up
18 years ago
belugas
15d4a27c89
(svn r10343) -Cleanup: Add documentation of functions and code-style fix.
...
Thanks of 45 degree patch for bringing it up
18 years ago
peter1138
2d6f6c9dfa
(svn r10334) -Fix [FS#937]: with smooth scrolling enabled, the viewport destination was not clamped to the map
18 years ago
peter1138
217765fc0b
(svn r10334) -Fix [FS#937]: with smooth scrolling enabled, the viewport destination was not clamped to the map
18 years ago
peter1138
97a2f5bf2a
(svn r10321) -Codechange: refer to sign text by index
18 years ago
peter1138
fd73ea2058
(svn r10321) -Codechange: refer to sign text by index
18 years ago
rubidium
328d369f64
(svn r10262) -Fix (r10258): some places that needed to be changed to uint64 were hidden/forgotten, which caused memory corruptions and that in caused all kinds of assertions to trigger.
18 years ago
rubidium
0b34c9aefe
(svn r10262) -Fix (r10258): some places that needed to be changed to uint64 were hidden/forgotten, which caused memory corruptions and that in caused all kinds of assertions to trigger.
18 years ago
truelight
79cd3f5db0
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
...
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
18 years ago
truelight
003375d375
(svn r10190) -Codechange: merged renderer and blitter to one single class API: blitter
...
-Codechange: introduced a hierachy of blitters to avoid a lot of code duplication
Note: this allows much easier adding other types of video-drivers, like OpenGL
18 years ago
truelight
0e53fd6d32
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
...
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
18 years ago
truelight
f3f744d36a
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
...
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
18 years ago
maedhros
c186f91cbd
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
...
road vehicles for those who prefer the technical explanation.
18 years ago
maedhros
3e326085fa
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
...
road vehicles for those who prefer the technical explanation.
18 years ago
truelight
05e2bd2793
(svn r10093) -Revert: removed 16x zoom-out as it is broken beyond repair
18 years ago
truelight
a391f03ae2
(svn r10093) -Revert: removed 16x zoom-out as it is broken beyond repair
18 years ago
peter1138
f8120ef5a0
(svn r9963) -Fix (r9962): 'smooth_scroll' patch setting was ignored (always on) in some places.
18 years ago
peter1138
63f7965920
(svn r9963) -Fix (r9962): 'smooth_scroll' patch setting was ignored (always on) in some places.
18 years ago
peter1138
2851f58efa
(svn r9962) -Feature: Add smooth viewport scrolling. This must be enabled with patch setting 'smooth_scroll'
18 years ago
peter1138
344e9007fe
(svn r9962) -Feature: Add smooth viewport scrolling. This must be enabled with patch setting 'smooth_scroll'
18 years ago
maedhros
1a9d43ff40
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
18 years ago
maedhros
ca5c578d0f
(svn r9900) -Codechange: Separate the variables for how to highlight a land area and what to do with it afterwards.
18 years ago
truelight
ecb8585bd4
(svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
...
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
18 years ago
truelight
49aa3bedfb
(svn r9885) -Fix r9846: some last bitshifts with zoom-levels that were forgotten
...
-Fix r9846: initialize the zoom level for 'screen', as assuming 0 is not correct
18 years ago
truelight
d2c750b2c9
(svn r9884) -Feature: 2 new zoom-out levels: 8 times and 16 times
...
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
18 years ago
truelight
6954045bb4
(svn r9884) -Feature: 2 new zoom-out levels: 8 times and 16 times
...
-Codechange: unified the blitter function so we have 1 function for all zoom-levels
-Codechange: make most of the label functions work with zoom-level instead of magic numbers and big switches per zoom-level
-Codechange: MakeXXXDirty() functions didn't take into account zoom-level, but just used the biggest possible value
-Codechange: simplified blitter functions to avoid code duplication
18 years ago
truelight
b605f68631
(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
...
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
18 years ago
truelight
765c466b8d
(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
...
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
18 years ago
truelight
dc191785db
(svn r9844) -Codechange: replace zoomlevel with an enum
...
-Codechange: use predefined enums for viewport zoomlevels
18 years ago
truelight
d3f375231f
(svn r9844) -Codechange: replace zoomlevel with an enum
...
-Codechange: use predefined enums for viewport zoomlevels
18 years ago
peter1138
e4ada15d49
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
18 years ago
peter1138
0de85b7eb0
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
18 years ago
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
belugas
0eaa72e324
(svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections...
18 years ago
belugas
d6651c1741
(svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections...
18 years ago
maedhros
3d81de8d7e
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
18 years ago
maedhros
ccaaa7d33a
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
18 years ago
peter1138
d3ae1421fa
(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
18 years ago
peter1138
23d9d6cfb4
(svn r9596) -Fix (r9563): (non-)transparency of station signs was confused with building transparency...
18 years ago
belugas
faad091b8f
(svn r9580) -Documentation: Correction of doxygen function declarations
18 years ago
belugas
82ad5a6d9c
(svn r9580) -Documentation: Correction of doxygen function declarations
18 years ago
peter1138
51d72c11c8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
18 years ago
peter1138
a2cec54c9d
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
18 years ago
belugas
45b0c8042f
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
18 years ago
belugas
a1b7fb8909
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
18 years ago
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
belugas
b1b5aecae9
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
18 years ago
belugas
a723770836
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
18 years ago
tron
053e2ddda5
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
18 years ago
tron
103d119c51
(svn r8841) -Fix
...
Remove {,u}intswap() and replace them by Swap()
18 years ago
rubidium
c4ff0121c4
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
18 years ago
rubidium
5011997f69
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
18 years ago
bjarni
d40886903d
(svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
...
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
Surprisingly this can be done without changing the savegame format
18 years ago
bjarni
037d636734
(svn r8621) -Codechange: assigned new numbers to the VEH_(type) enum so that VEH_Train is 0, VEH_Road is 1 and so on
...
This means that "v->type" can be used as array indexes instead of VehTypeToIndex() (or "v->type - VEH_Train/0x10 as the code still used in some places)
Surprisingly this can be done without changing the savegame format
18 years ago
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
18 years ago
rubidium
c8882bd3d2
(svn r8511) -Codechange: make WindowClass an enumerated value.
18 years ago
tron
81e88a2a7c
(svn r8276) -Fix
...
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
18 years ago
tron
b2def96248
(svn r8276) -Fix
...
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
18 years ago
Darkvater
5f06f6796d
(svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz)
18 years ago
Darkvater
aee29710bd
(svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz)
18 years ago
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
peter1138
92d418b031
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
18 years ago
celestar
c56ee62ade
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
18 years ago
celestar
1691b2da61
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
18 years ago
celestar
08de6b082a
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
18 years ago
celestar
2ac0410767
(svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago