Darkvater
4c9d9a87f1
(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an
...
actual playable player (< MAX_PLAYERS) or not.
18 years ago
Darkvater
2380bb56cd
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
...
these are used intermixed often.
18 years ago
Darkvater
a85d679f54
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
...
put it into player.h where it belongs (instead of map.h)
18 years ago
peter1138
8b2e4e970a
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
18 years ago
Darkvater
7e4d0f112e
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
...
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
18 years ago
rubidium
21ac20aeca
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
18 years ago
rubidium
86dc219b4b
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
18 years ago
rubidium
908d3bcfe6
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
18 years ago
Darkvater
3e087242a7
(svn r5951) - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again.
18 years ago
rubidium
e87e065e41
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
...
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
18 years ago
tron
31932c47b7
(svn r5924) Revert accidently commited files
18 years ago
tron
ced2b50c05
(svn r5923) Fix 'make depend' which was broken in r3574 (it just did nothing)
18 years ago
rubidium
33c1b6866c
(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.
18 years ago
Darkvater
86934247cd
(svn r5906) -Fix [ 1203146 ]: GetVehicleOutOfTunnelTile always returned v->tile, now the exit-tile of the tunnel based on the vehicle's direction is correctly returned. Based on a patch by glx.
18 years ago
Darkvater
dae5403971
(svn r5901) -Fix [FS#253]: Differing price calculation for tunnels depending on starting point
18 years ago
rubidium
9fc837ad85
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
tron
0403405d5d
(svn r5833) -Feature: Allow building of (certain) rails, roads and bridge ramps on steep sloped tiles
18 years ago
tron
928e2902ac
(svn r5809) Turn the tests for valid bridge ramp slopes into something comprehensible
18 years ago
tron
d8b8035f9f
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
18 years ago
tron
2b8a08dbff
(svn r5641) -Fix: Adjust/correct some bounding boxes. This fixes some graphical glitches near bridges
18 years ago
tron
f58ffbeb4e
(svn r5611) Remove a stale comment
18 years ago
tron
b8d6986d8f
(svn r5610) Remove a pointless call to VehicleInTheWayErrMsg() - only trains can be on rail bridges
18 years ago
tron
e7f32ed29f
(svn r5592) Merge two complementary cases
18 years ago
tron
d7cc128c96
(svn r5582) Add and use AxisToTrack{Bits,}()
18 years ago
tron
fe2faf5457
(svn r5580) -Regression: Under certain circumstances it was possible to remove/convert bridges while a vehicle was on it. Fix this by properly calculating the height of a bridge
18 years ago
peter1138
08c50b7441
(svn r5403) - Feature: Allow building canals at sea-level, using ctrl to toggle canal or plain water tile. This allows building of non-raisable sea-level water ways (useful in multiplayer) and dikes for low-level areas.
18 years ago
tron
772fbda3e3
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
eb15c9fffa
(svn r5352) -Fix: Return accurate slope information for tunnels and bridges to fix several foundation graphics glitches
18 years ago
tron
d8605beacf
(svn r5315) -Fix: Prohibit altering a road tile while road works are in progress
...
This fixes some glitches like "turning" the excavation by adding/removing road bits or removing the road piece
18 years ago
tron
505e85c99b
(svn r5260) -Fix: It was possible to convert the railtype of a bridge while a train was on it
18 years ago
tron
e12ea73ec4
(svn r5259) -Codechange: GetBridgeHeight{Ramp,}() now returns the height of the bridge, not one level lower
18 years ago
tron
a2362674e3
(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
56710ebc2c
(svn r5199) Make the control flow of GetTileTrackStatus_TunnelBridge() more comprehensible
18 years ago
tron
7fd88e5798
(svn r5155) - Remove the bridge branch merge (revision r5070)
18 years ago
celestar
e530e53564
(svn r5081) -Fix: Could not build bridges over crossings (but crossings under bridges were possible), noticed by WhiteRabbit
18 years ago
celestar
b618b75c9b
(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
KUDr
308f27a3de
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
19 years ago
tron
2b17d16ce2
(svn r4937) Reduce the use of _error_message a bit
19 years ago
tron
b95c1faca9
(svn r4927) Replace 3 big ifs (which regard foundations) by a bit less confusing code
19 years ago
celestar
0310643a7e
(svn r4882) -Fix: Forgot a change in previous commit
19 years ago
celestar
967d4011f7
(svn r4881) -Codechange: Be a little more strict about types and remove some null-operations
19 years ago
tron
1be0d9926e
(svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does
19 years ago
rubidium
2a337ab009
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
19 years ago
rubidium
3dae1a9bba
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
19 years ago
tron
40a843e808
(svn r4771) -Regression: It was possible to remove a bridge while a vehicle was on it
19 years ago
tron
00930cf8d9
(svn r4766) -Fix: Vehicles on a sloped tile under a bridge were affected by the bridge speed limit
19 years ago
tron
ebcf2ee3b1
(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places
19 years ago
tron
b57640e28a
(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
tron
6dbc9c9ced
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
19 years ago
tron
dd180a1e18
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago