KUDr
f2cda44d2e
(svn r7195) -Feature: [FS#297, optional elrails] New patches/vehicles option 'disable electrified railways'.
...
(original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
18 years ago
rubidium
63687763e9
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
18 years ago
rubidium
27cee58ab8
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
18 years ago
rubidium
480af9c917
(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
matthijs
49b7b1e0eb
(svn r5911) -Fix [FS#215]: Discard upper bits of TrackdirBitsToTrackBits result.
18 years ago
tron
7ec704564a
(svn r5582) Add and use AxisToTrack{Bits,}()
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
18 years ago
tron
1ad425e802
(svn r5309) Partially fix the rail header dependency fiasco: rail_map.h now depends on rail.h and not the other way round anymore
18 years ago
KUDr
5e73dce0e7
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
19 years ago
celestar
979b640f19
(svn r4946) "Feature": Add a cheat that allows running electric engines on normal rail
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
4f092c8de8
(svn r4764) Move some functions from rail.h to rail_map.h
19 years ago
tron
0347fb2ab6
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
19 years ago
celestar
6935fb6455
(svn r4461) -Codechange: Add and make use of map accessor functions for signal drawing. Includes some basic cleanup of the drawing functions
19 years ago
celestar
e79c36bf8c
(svn r4376) -Codechange Renamed GetSignalState to GetSignalStateByTrackdir
19 years ago
peter1138
5f24141cb8
(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
19 years ago
tron
d38964e49a
(svn r4351) Simplify ReverseTrackdir() to use a simple arithmetic operation instead of a table lookup
19 years ago
tron
b0ee09fd1d
(svn r4349) Remove GetCrossingTransportType(), it's slightly overkill
19 years ago
tron
f4a8818dbf
(svn r4348) Move IsLevelCrossing() from rail.h to road_map.h
19 years ago
orudge
0fe27c16af
(svn r4204) - Get trunk compiling again on OS/2
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
77e5cf4bc1
(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles
19 years ago
tron
d8dcedcfd2
(svn r3946) Add short hand names for common track combinations
19 years ago
tron
d00222b0f7
(svn r3941) Get rid of RAIL_TYPE_SPECIAL
19 years ago
tron
27d7d42404
(svn r3913) Move declarations to rail_map.h so rail.h is dependent on rail_map.h and not the other way round
19 years ago
tron
41ee22ed99
(svn r3912) Move the signal type enum and GetSignalType() to rail_map.h; also add SetSignalType() and use the functions
19 years ago
tron
2232412f59
(svn r3911) Add functions to retrieve/set the signal variant (electric/semaphore)
19 years ago
tron
586388c9f1
(svn r3767) Move all direction related enums and functions to a separate header
19 years ago
tron
40fd4377b0
(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
19 years ago
tron
793613a286
(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes
19 years ago
tron
453b30e387
(svn r3564) Several smaller changes:
...
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
19 years ago
tron
22dc05faf2
(svn r3510) Fiddle with whitespace and parentheses
19 years ago
Darkvater
4e09974975
(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
...
- The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
19 years ago
Darkvater
f4e7d3203a
(svn r3466) - Codechange: Some changes to increase readability of signals code.
19 years ago
peter1138
452ae7470b
(svn r3443) - Fix signed/unsigned comparison warning when compiling with gcc 2.95 (tokai)
19 years ago
tron
e272b03fee
(svn r3365) Staticise 36 functions
19 years ago
matthijs
128317d3ec
(svn r3329) - Doc: Some documentation cleanups.
...
- Add: TracksOverlap() (from the map branch), TrackdirBitsToTrackBits(), DiagdirReachesTrackdirs(), DiagdirReachesTracks().
- Fix: Infinite loop in the pathfinder introduces in r3321.
19 years ago
tron
2cc2154ad2
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
19 years ago
celestar
5f604ec63a
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
19 years ago
tron
66bf4f863d
(svn r3049) Replace byte/int/uint by RailType where appropriate
19 years ago
tron
f97d1274bc
(svn r3040) Don't deduce the cursor sprites when building rails from magic numbers, but fetch them from the central rail info array.
19 years ago
tron
7520ef8f33
(svn r3037) Don't deduce the sprites for tunnels and level crossings from magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
19 years ago
peter1138
f8d1267d71
(svn r2998) -Codechange: Split rail drawing code off from DrawTile_Rail into a separate function to be used elsewhere. (Deja vu?)
19 years ago
Darkvater
8e6a911700
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
...
- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending
19 years ago
celestar
1d527c58cb
(svn r2798) -Codechange: Unified the rail toolbars into one that is modified by
...
request using the RailtypeInfo struct
19 years ago
celestar
fcf5ace08f
(svn r2774) -Codechange: Removed TRACKTYPE_SPRITE_PITCH globally and replaced it by a member of RailtypeInfo
19 years ago
ludde
24986e9144
(svn r2756) Renamed railtypes into _railtypes
...
Renamed railtypes.c into railtypes.h, all other tables are in .h files. (It should be in the tables dir but I couldn't figure out how to get it there without deleting it first).
Added const and extern.
19 years ago
celestar
1736566e22
(svn r2753) -Codechange: Introduced a new struct "RailtypeInfo" to store rail type specific information. Begun populating it with a bunch of sprites, more to come later. This should result in cleaner, more compact code which allows easy introduction of new railtypes.
19 years ago
celestar
3868b151a9
(svn r2752) -Doc: Added some doxygen stuff to rail.h. I'm gonna mess around with this file and wanted to get rid of this first
19 years ago
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
19 years ago