Commit Graph

17 Commits (c8a176b73f5b77a450148f996820670b20e7ac64)

Author SHA1 Message Date
peter1138 192137258a (svn r6560) - Codechange: Minor fix; add missing #include guards and comments, and correct svn properties on bmp.[ch] 18 years ago
tron d7cc128c96 (svn r5582) Add and use AxisToTrack{Bits,}() 18 years ago
tron 7fd88e5798 (svn r5155) - Remove the bridge branch merge (revision r5070) 18 years ago
tron 3cb526d0d9 (svn r5101) Add a function to convert an axis and a flag for north/south into a DiagDirection. Use it for bridge ramps and ship depots 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
celestar f771c96958 (svn r4311) -Fix/Codechange: Clear the railtype when removing rail under a bridge. FS#103 exhibited this problem 19 years ago
tron bbf4f982a0 (svn r4166) Sprinkle several map accessors with assert()s 19 years ago
celestar 6c44bf5012 (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 6e988259a4 (svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX 19 years ago
tron 1c6915bca3 (svn r3904) Move GetBridgePiece() and GetBridgeType() to bridge_map.h and make the only place which still extracted that info diretly use the wrapper 19 years ago
tron 666c0a379d (svn r3899) Use wrapper functions to make more clear how deleting stuff under bridges works; also remove an unnecessary local variable 19 years ago
tron 1ac97fe008 (svn r3898) Add functions to find a bridge end starting at a middle tile 19 years ago
tron 23d5188b7b (svn r3889) Change a part of the bridge drawing code to make it more comprehensible and add the needed accessors 19 years ago
tron 626109f3f9 (svn r3887) Add a function to get the other bridge end when you're at a bridge ramp 19 years ago
tron c515c34008 (svn r3877) Add functions to turn a tile into a rail/road bridge ramp/middle part 19 years ago
tron 273533d4c7 (svn r3857) Add and use GetBridgeRampDirection()
Note: This slightly changes the behavior of GetAnyRoadBits() to only return a road piece for the start of the bridge ramp instead of a full ROAD_[XY]
19 years ago
tron 26815f7405 (svn r3846) Add functions to set the type of stuff (clear, water, rail, road) under bridges 19 years ago