summaryrefslogtreecommitdiff
path: root/elrail.c
AgeCommit message (Collapse)Author
2006-09-04(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines ↵rubidium
more uniform. -Cleanup: whitespace alignment of a few tables.
2006-08-31(svn r6265) Check whether to draw catenary at all once before the drawing ↵tron
loop instead of on every iteration
2006-08-31(svn r6255) Simplify drawing of catenary in depotstron
2006-08-29(svn r6226) -Fix(r5864): an assertion was triggered when drawing catenary on ↵glx
steep slopes (TrueLight)
2006-07-27(svn r5624) Use {IsPlainRailTile,IsRailDepot,IsRailWaypoint,HasSignals}() ↵tron
instead of GetRailTile{T,Subt}ype() - this is more concise and a bit more flexible if/when the rail tile encoding changes
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-07-22(svn r5584) When drawing catenary on a bridge calculate its height only oncetron
2006-07-22(svn r5582) Add and use AxisToTrack{Bits,}()tron
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-14(svn r5259) -Codechange: GetBridgeHeight{Ramp,}() now returns the height of ↵tron
the bridge, not one level lower
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-09(svn r5198) Fix some strange control flow: the case for MP_RAILWAY fell ↵tron
through the case for MP_TUNNELBRIDGE
2006-06-07(svn r5155) - Remove the bridge branch merge (revision r5070)tron
2006-06-05(svn r5136) Fix various style bugs:tron
- Trailing whitespace - Trailing empty lines - Missing newline at EOF - Missing svn:eol-style native
2006-06-02(svn r5070) Merged the bridge branchcelestar
-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.
2006-05-20(svn r4934) -Fix: Correct a misleading comment, and remove an unneeded ↵celestar
condition from the corresponding if (thans Tron for pointing it out)
2006-05-09(svn r4789) - Codechange: rename RoadType to RoadTileType and ↵rubidium
ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
2006-05-09(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and ↵rubidium
RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
2006-05-08(svn r4785) - Newstations: don't draw catenary on non-track tilesglx
2006-04-23(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}tron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-07(svn r4307) -Fix: Coding style in previous commit. Thanks to Tron for ↵celestar
instant notice
2006-04-07(svn r4306) -Fix (103). Assertion when removing elrails under bridges. ↵celestar
Thanks to Rubidium for reporting and fixing
2006-04-07(svn r4305) -Codechange: Minor elrail cleanup (Tron)celestar
2006-04-05(svn r4284) -Fix: Tunnel portals no longer have a pylon ON them if there is ↵celestar
a track right above the portal
2006-04-05(svn r4283) -Cleanup: More elrail housekeeping, remove code dublication, ↵celestar
more meaningful variable names, simplify control flow..
2006-04-05(svn r4281) -Cleanup: Begun cleaning up elrail code a bit, mostly comments ↵celestar
and enum/array alignment
2006-04-04(svn r4276) -Codechange: Cleaned DrawCatenaryOnBridge a bit (requested by Tron)celestar
2006-03-31(svn r4216) -Fix: Fixed revision 4214, did a bad error there. Thanks MiHaMiX ↵celestar
for pointing it out
2006-03-31(svn r4214) -Fix: Do not try to obtain Trackbits for normal rails, bus ↵celestar
stops, airports and other non-rail tiles
2006-03-31(svn r4204) - Get trunk compiling again on OS/2orudge
2006-03-30(svn r4180) -Fix: Fixed an assert in the elrail drawing code due to passing ↵celestar
of a wrong variable. I wish the compiler would warn about different enum types used...
2006-03-30(svn r4178) -Fix: Draw catenary inside waypoints as wellcelestar
2006-03-30(svn r4177) -Fix: GetRailTrackBitsUniversal needs Trackbits, not Track. ↵celestar
While at it, remove an unused variable
2006-03-30(svn r4165) -Do not use GetBridgeAxis on bridge ramps (request by Tron)celestar
2006-03-30(svn r4164) Use acessor functionstron
2006-03-29(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of ↵celestar
code and proofreading, thanks to peter1138 for another lot of code and ideas.