Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-03-13 | (svn r3849) Fix bug in r3846 | tron | |
2006-03-13 | (svn r3846) Add functions to set the type of stuff (clear, water, rail, ↵ | tron | |
road) under bridges | |||
2006-03-13 | (svn r3838) Demystify building bridge middle parts a bit by removing some ↵ | tron | |
magic numbers and generic names | |||
2006-03-12 | (svn r3837) Partially unmagicfy restoring the tiles when deleting a bridge | tron | |
Existing bug: When restoring a road piece which belongs to a town the town index unconditionally gets set to 0 | |||
2006-03-12 | (svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add ↵ | tron | |
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does | |||
2006-03-12 | (svn r3829) Reduce the use of _error_message by directly returning error ↵ | tron | |
codes instead of using this global variable | |||
2006-03-12 | (svn r3823) Remove dead code: A value for 'image' gets calculated and ↵ | tron | |
overwritten just a few lines later without being used in between | |||
2006-03-11 | (svn r3820) Be a bit more strict with types: use special types instead of ↵ | tron | |
generic byte and don't fill arbitrary data into inappropriate types | |||
2006-03-10 | (svn r3814) Remove another call to FindLandscapeHeight() | tron | |
2006-03-09 | (svn r3803) Change the second parameter of UpdateSignalsOnSegment() from ↵ | tron | |
Direction to DiagDirection as that's what it really operates on | |||
2006-03-08 | (svn r3783) Replace further ints and magic numbers by Direction, ↵ | tron | |
DiagDirection and friends | |||
2006-03-07 | (svn r3779) Move CheckTunnelInWay() to a more appropriate place, invert its ↵ | tron | |
result and give it a less ambiguous name (IsTunnelInWay) | |||
2006-03-06 | (svn r3777) Add some functions to handle tunnels | tron | |
2006-03-06 | (svn r3776) Replace many ints and magic numbers by Direction, DiagDirection ↵ | tron | |
and friends | |||
2006-03-05 | (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme | tron | |
2006-02-23 | (svn r3658) Add functions and symbolic names to retrieve road tile types and ↵ | tron | |
road pieces | |||
2006-02-22 | (svn r3654) Turn another if-cascade into a switch | tron | |
2006-02-22 | (svn r3653) -Fix: You didn't pay for terraforming at the end tile when ↵ | tron | |
building a tunnel | |||
2006-02-22 | (svn r3652) Rewrite CmdBuildTunnel in the hope to make it a bit more ↵ | tron | |
comprehensible This implementation is also significantly shorter because it removes many redundant checks | |||
2006-02-21 | (svn r3645) Fix stupid typos in last (r3644) commit *sigh* | tron | |
2006-02-21 | (svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often ↵ | tron | |
it was just a complicated way of writing GetTileSlope(tile, NULL) | |||
2006-02-18 | (svn r3613) Some more const, indentation, whitespace and similar stuff | tron | |
2006-02-13 | (svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, ↵ | tron | |
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff | |||
2006-02-06 | (svn r3564) Several smaller changes: | tron | |
- 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 | |||
2006-02-02 | (svn r3520) Remove unused parameters from some functions | tron | |
2006-02-01 | (svn r3511) More whitespace ([FS#46] by Rubidium) | tron | |
2006-02-01 | (svn r3510) Fiddle with whitespace and parentheses | tron | |
2006-01-30 | (svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a ↵ | tron | |
TileIndex points to a tile on the map | |||
2006-01-30 | (svn r3487) -Fix: Price for demolishing a bridge was dependent on ↵ | tron | |
orientation and map size | |||
2006-01-29 | (svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it ↵ | Darkvater | |
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. | |||
2006-01-22 | (svn r3418) - Fix: When removing a town-owned tunnel the player's rating was ↵ | peter1138 | |
not reduced, as it checked the ownership of the tunnel after clearing it. Now we perform the rating adjustment before clearing the tiles. (spotted by glx) | |||
2006-01-08 | (svn r3391) - PBS Fix: Keep PBS reservation state when building a bridge ↵ | peter1138 | |
over rail. | |||
2005-12-15 | (svn r3308) BAD | tron | |
foo.h: int bar; GOOD foo.h: extern int bar; foo.c: int bar; | |||
2005-12-10 | (svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed() | peter1138 | |
2005-11-18 | (svn r3218) -Feature: Multiheaded train engines will now stay in the same train | bjarni | |
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead This fixes the assert when moving multiheaded engines (introduced in r3144) Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs -Codechange: train subtype is now a bitmask This allows fast access to info like if it is a wagon or engine and if it is in front and so on Note: savegame version bump | |||
2005-11-16 | (svn r3205) Some more uses for GB/SB | tron | |
2005-11-15 | (svn r3186) Unnecessary casts and truncation | tron | |
2005-11-15 | (svn r3184) GB/SB | tron | |
2005-11-14 | (svn r3181) -Bracing | tron | |
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if | |||
2005-11-14 | (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT | tron | |
2005-10-19 | (svn r3066) Constify the parameter of GetSlopeZ_*() | tron | |
2005-10-19 | (svn r3065) -Codechange/Add: Modified the bridge drawing code so that the ↵ | celestar | |
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. | |||
2005-10-19 | (svn r3064) Replace some numbers by sprite names | tron | |
2005-10-15 | (svn r3046) Replace some numbers with sprite names and fix a typo in the ↵ | tron | |
sprite list | |||
2005-10-13 | (svn r3037) Don't deduce the sprites for tunnels and level crossings from ↵ | tron | |
magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails | |||
2005-10-10 | (svn r3028) s/255/OWNER_SPECTATOR/ | tron | |
2005-10-05 | (svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB | tron | |
2005-10-01 | (svn r3004) -Feature, NewGRF: Support loading of bridge attributes and ↵ | peter1138 | |
tables from GRF. Currently drawing tall pillars uses old data. | |||
2005-09-18 | (svn r2962) - const correctness for all Get* functions and most Draw* ↵ | Darkvater | |
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending | |||
2005-09-13 | (svn r2948) -Fix: the old AI needs a special flag that triggers all kind of ↵ | truelight | |
special abilities you really don't want to know about (free bridges, etc..) I removed this flag some revisions ago, but the Aircraft part depends on it, so I re-enabled it again.. |