tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
e5509d3b3e
(svn r5327) Use DrawFoundation() for houses
...
-Fix: Some graphical glitches on house tiles with foundations
-Fix: The selection cursor is now aligned with the top of the foundation for house tiles
18 years ago
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
18 years ago
tron
7c1f1d823f
(svn r5171) Get rid of an ungly hack in the load routine, which temporarily turned house and road tiles into void tiles to calculate the closest town
18 years ago
tron
be88e269b9
(svn r5155) - Remove the bridge branch merge (revision r5070)
18 years ago
celestar
25a63ec7af
(svn r5070) Merged the bridge branch
...
-Feature: Bridges can now be placed above:
Any railway track combination (excluding depots and waypoints)
Any road combination (excluding depots)
Clear tiles (duh), including fields
Tunnel entrances
Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge.
DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
18 years ago
tron
2a3aca6139
(svn r4920) Remove parameters, which get only used in certain functions, by splitting those functions.
...
At least in the case of checking for oil industry restrictions this makes the check conditions more clear.
19 years ago
celestar
1d606e7392
(svn r4591) -Fix (FS#122) Game no longer errors out when "Many random towns" is selected in the scenario editor.
...
-Side effects:
- Removed one global variable from variables.h
- Remove an ugly hack for the "many random towns" function
19 years ago
tron
18ad0ae50e
(svn r4572) Remove vehicle_leave_tile_proc
...
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing)
It's a bit overkill, so just handle this one case where it can happen
19 years ago
belugas
ebf6797678
(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
19 years ago
tron
c1dc517dab
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
19 years ago
tron
bbcdbb830b
(svn r4547) Revert a part of r4541 to silence an assertion for now
19 years ago
tron
0347fb2ab6
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
peter1138
ae7ec5cd0d
(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.
19 years ago
tron
81e6d68f95
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
...
Remove DoCommandByTile(), because now it does the same as DoCommand()
19 years ago
celestar
1b51ad3dde
(svn r4262) -Codechange: use IsClearWaterTile instead of some "home-brewn" marco. town_cmd is now map access free
19 years ago
belugas
f4bbce2c39
(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And cleaning on town.flags12 too
19 years ago
celestar
c541a705f7
(svn r4254) -Codechange: Add and make use of map accessors for town lifts.
19 years ago
celestar
cc87f682b9
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
19 years ago
tron
892a4c587d
(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo
19 years ago
celestar
7f134d238f
(svn r4190) -Codechange: Add and make use of an accessor function to create houses
19 years ago
belugas
80570009dd
(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. Although it was an accessor, nor his usage nor the values were clear.
19 years ago
celestar
0dc5d10de2
(svn r4179) -Codechange: Add and make use of an accessor that obtains the building type
19 years ago
celestar
8310a46351
(svn r4154) -Moved MAX_BRIDGES in bridge.h and made it an enum. This makes two drops ...
19 years ago
tron
88d27219b4
(svn r4085) Add GetTown{Index,ByTile}() to get the town index resp. the town from a tile
19 years ago
tron
541703a2f6
(svn r4073) Add functions to make and test for (most) unmovable tiles
19 years ago
tron
820b8ca230
(svn r3996) -Fix: Slope and height information returned for some tile types is wrong
...
This leads to graphical glitches when drawing foundations.
This doesn't fix all problems, but at least some of them.
19 years ago
tron
75a9419f04
(svn r3986) Add [GS]etCrossingRoadOwner
19 years ago
Darkvater
d9ee10d3b8
(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
...
- Also add this capability to settings
19 years ago
tron
78083f0da7
(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
19 years ago
tron
f2dc736554
(svn r3777) Add some functions to handle tunnels
19 years ago
tron
f3fb21c96c
(svn r3773) Shove some semantics down ottd's throat by replacing ints and magic numbers by enums and some related changes
19 years ago
tron
cc4f5b4e6f
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
19 years ago
tron
6a74cb2787
(svn r3660) Convert further road bits and type references to the functions/enums
19 years ago
tron
4b46883751
(svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often it was just a complicated way of writing GetTileSlope(tile, NULL)
19 years ago
Darkvater
45e85d2eb2
(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION
19 years ago
tron
ea73b46684
(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
19 years ago
tron
96c81610d1
(svn r3561) Don't use FindLandscapeHeightByTile() when it's overkill. Also use a sprite enum instead of a magic number.
19 years ago
tron
b844aa2db3
(svn r3520) Remove unused parameters from some functions
19 years ago
tron
84fb96fe85
(svn r3511) More whitespace ([FS#46] by Rubidium)
19 years ago
tron
22dc05faf2
(svn r3510) Fiddle with whitespace and parentheses
19 years ago
Darkvater
663b1c6c00
(svn r3445) - Fix: [ 1415379 ] Enhance documentation of lift destination
...
- Fix: wrong documentation of trees (Tron)
19 years ago
tron
e272b03fee
(svn r3365) Staticise 36 functions
19 years ago
tron
fa78c057ee
(svn r3339) Remove unnecessary includes
19 years ago
peter1138
809b03c81a
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
19 years ago
tron
b5dafb8f94
(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR
19 years ago
tron
f7abff5f96
(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
5fa6b7eb06
(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
...
- CHANCE*() instead of mumbling strange numbers
19 years ago
tron
833032adc0
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
19 years ago
tron
ee15e3de13
(svn r3172) static, const
19 years ago