Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-04-25 | (svn r4572) Remove vehicle_leave_tile_proc | tron | |
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 | |||
2006-04-23 | (svn r4541) Add a type for slopes and replace many magic numbers by the ↵ | tron | |
appropriate enums | |||
2006-04-10 | (svn r4342) Change the first two parameters of commands - virtual pixel ↵ | tron | |
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand() | |||
2006-04-04 | (svn r4269) We don't use GNU indentation style | tron | |
2006-04-03 | (svn r4266) - Fix: compile warning on VS2005 (not all control paths return a ↵ | Darkvater | |
value) | |||
2006-04-03 | (svn r4252) -Codechange: Make more use of map accessors. water_cmd is now ↵ | celestar | |
map access free | |||
2006-04-03 | (svn r4250) -Codechange: Further use of map accessors for water tiles | celestar | |
2006-04-03 | (svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 ↵ | celestar | |
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty | |||
2006-04-02 | (svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo | tron | |
2006-03-31 | (svn r4212) -Codechange: Add and make use of an accessor that retrieves the ↵ | celestar | |
type of a water tile. Add an enum describing the different water tiles | |||
2006-03-30 | (svn r4172) -Codechange: Added a few accessors to work with ShipDepots and Locks | celestar | |
2006-03-30 | (svn r4171) -Codechange: Create map accessor functions for creating ship ↵ | celestar | |
depots and locks. Make use of them | |||
2006-03-26 | (svn r4120) Use the new station functions where appropriate | tron | |
2006-03-19 | (svn r3987) Fix another bug in r3979 *grumble* | tron | |
2006-03-19 | (svn r3980) Fix glitch in r3979 spotted by Rubidium. Maybe I'm getting too ↵ | tron | |
old for this... | |||
2006-03-19 | (svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to ↵ | tron | |
get information about rail tiles | |||
2006-03-16 | (svn r3907) Replace many bridge related direct map accesses with calls to ↵ | tron | |
shiny new functions and mark some strange constructs with XXX | |||
2006-03-13 | (svn r3846) Add functions to set the type of stuff (clear, water, rail, ↵ | tron | |
road) under bridges | |||
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-10 | (svn r3813) Simplify strange control flow | tron | |
2006-03-08 | (svn r3792) -Fix: Mark the right tile as dirty. It's just a graphical glitch ↵ | tron | |
which happend in r1592 | |||
2006-03-08 | (svn r3783) Replace further ints and magic numbers by Direction, ↵ | tron | |
DiagDirection and friends | |||
2006-03-01 | (svn r3714) Add functions to turn tiles into water and shore tiles | 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-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 | |||
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 r3199) -Fix: There are only 2 possible directions for ship depots, not 4 | tron | |
2005-11-16 | (svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill | 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-10-23 | (svn r3078) Some more stuff, which piled up: | tron | |
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants | |||
2005-10-22 | (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵ | tron | |
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up | |||
2005-10-19 | (svn r3066) Constify the parameter of GetSlopeZ_*() | tron | |
2005-10-15 | (svn r3046) Replace some numbers with sprite names and fix a typo in the ↵ | tron | |
sprite list | |||
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-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-08-01 | (svn r2781) Fix some of the issues with variables in .h files. | ludde | |
2005-07-24 | (svn r2701) Insert Id tags into all source files | tron | |
2005-07-22 | (svn r2673) Include functions.h directly, not globally via openttd.h | tron | |
2005-07-20 | (svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite | celestar | |
2005-07-13 | (svn r2558) Change the internal map format from 7 arrays to one array of ↵ | tron | |
structs, this doesn't change the saved format for now. It's a stepping stone for further changes. | |||
2005-06-25 | (svn r2487) Replace TILE_XY by TileXY/TileDiffXY | tron | |
2005-06-25 | (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to ↵ | tron | |
TileVirtXY | |||
2005-06-24 | (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" | tron | |
2005-06-04 | (svn r2408) Introduce SetTileOwner() and use it | tron | |
2005-06-04 | (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix ↵ | tron | |
some bogus reads of _map_owner | |||
2005-06-02 | (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files. | Darkvater | |