tron
a46aa3153c
(svn r5641) -Fix: Adjust/correct some bounding boxes. This fixes some graphical glitches near bridges
18 years ago
tron
3d1720ca29
(svn r5611) Remove a stale comment
18 years ago
tron
ec109a8e8f
(svn r5610) Remove a pointless call to VehicleInTheWayErrMsg() - only trains can be on rail bridges
18 years ago
tron
81846cca24
(svn r5592) Merge two complementary cases
18 years ago
tron
7ec704564a
(svn r5582) Add and use AxisToTrack{Bits,}()
18 years ago
tron
af7fa1df24
(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
a12c748f5b
(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
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
20ee056b9f
(svn r5352) -Fix: Return accurate slope information for tunnels and bridges to fix several foundation graphics glitches
18 years ago
tron
431baba8fe
(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
17c15fab3e
(svn r5260) -Fix: It was possible to convert the railtype of a bridge while a train was on it
18 years ago
tron
f5638395fe
(svn r5259) -Codechange: GetBridgeHeight{Ramp,}() now returns the height of the bridge, not one level lower
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
901e2d02b1
(svn r5199) Make the control flow of GetTileTrackStatus_TunnelBridge() more comprehensible
18 years ago
tron
be88e269b9
(svn r5155) - Remove the bridge branch merge (revision r5070)
18 years ago
celestar
8c01bf711d
(svn r5081) -Fix: Could not build bridges over crossings (but crossings under bridges were possible), noticed by WhiteRabbit
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
KUDr
5e73dce0e7
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
18 years ago
tron
1706164ff7
(svn r4937) Reduce the use of _error_message a bit
19 years ago
tron
1dc8b1a00e
(svn r4927) Replace 3 big ifs (which regard foundations) by a bit less confusing code
19 years ago
celestar
cbf4e1e159
(svn r4882) -Fix: Forgot a change in previous commit
19 years ago
celestar
476ad49ac0
(svn r4881) -Codechange: Be a little more strict about types and remove some null-operations
19 years ago
tron
c9defc0fea
(svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does
19 years ago
rubidium
e5bd292dab
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
19 years ago
rubidium
9b1bbf72ee
(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
8bd664f81f
(svn r4771) -Regression: It was possible to remove a bridge while a vehicle was on it
19 years ago
tron
24854be59e
(svn r4766) -Fix: Vehicles on a sloped tile under a bridge were affected by the bridge speed limit
19 years ago
tron
5622ad4b5e
(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
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
tron
c1dc517dab
(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
19 years ago
tron
0347fb2ab6
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
Darkvater
e21b7eebfa
(svn r4430) - NewGRF: Use the bridge's sprite layout for drawing high pillars. This fixes newgrf's high-bridge pillars drawing. Also remove the now obsolete _bridge_poles_table which was already integrated into the bridge sprite tables
19 years ago
tron
c26601eabd
(svn r4402) Fix a faulty entry in the table for slopes under bridges, remove a now unnecessary test which hid the faulty entry till now and undo r4398 (don't do this!)
19 years ago
celestar
a588d816ff
(svn r4398) -Fix: Quick and Dirty solution for FS#116. Just for the nightlies
19 years ago
celestar
5c3c4d190e
(svn r4392) -Codechange: Use water map accessors in bridge code
19 years ago
celestar
75f978626a
(svn r4391) -Fix: faulty ")" in previous commit
19 years ago
celestar
17da0bb976
(svn r4390) -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed...
19 years ago
tron
4615a26552
(svn r4374) Never directly commit something you prepared the evening before, mysteriously it will break in the morning, fix r4373
19 years ago
tron
82afa4caf2
(svn r4373) Rewrite GetSlopeZ_TunnelBridge() and slightly change its behavior:
...
- Report the correct z alongside the ramp when a foundation is present
- Always report the z under the bridge for a bridge middle part, except if the z hack is used
This should fix some weird behavior of the tile selector near bridges
19 years ago
tron
7a3345f4df
(svn r4344) Use tile coordinates or even TileIndices instead of virtual tile coordinates where it suffices.
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
Darkvater
fc68881906
(svn r4265) - Fix: compile warning on VS2005 (parameter 2 different from declaration)
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
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
tron
d9e705ae52
(svn r4164) Use acessor functions
19 years ago
belugas
3633d56923
(svn r4157) CodeChange : Keep on cleaning up Celestar's elrail merge
19 years ago
celestar
a7d8ad0004
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
19 years ago
tron
9d216c1c56
(svn r4047) Remove two calls to FindLandscapeHeight() and some confusing use of the comma operator
19 years ago
tron
77e5cf4bc1
(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles
19 years ago