Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-03-20 | (svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be ↵ | celestar | |
terraformed. Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one) Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts. That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff. TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile). | |||
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-08 | (svn r3794) Use already available accessor functions instead of GB() | tron | |
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-05 | (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme | tron | |
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-05 | (svn r3554) Add accessors for the field type and fences of clear tiles | tron | |
2006-02-01 | (svn r3515) Fix copy&pasto in r3514 | tron | |
2006-02-01 | (svn r3514) -Codechange: Replace direct fiddling of bits for the ground type ↵ | tron | |
and density of clear tiles with symbolic names and accessors. See clear.h for details | |||
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 | |||
2005-11-30 | (svn r3249) Fix for issue introduced in r3228. The original code was good ↵ | peter1138 | |
for raising, then for lowering, now for both. | |||
2005-11-22 | (svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with ↵ | peter1138 | |
diag tracks on it (based on patch by glx) | |||
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-15 | (svn r3046) Replace some numbers with sprite names and fix a typo in the ↵ | tron | |
sprite list | |||
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-07-28 | (svn r2739) -Fix(?): Change the fence algorithm so it removes fences when no ↵ | tron | |
farm tile is adjacent | |||
2005-07-28 | (svn r2738) Small bit fiddling cleanup | tron | |
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-21 | (svn r2664) Remove depedency on player.h from variables.h | tron | |
2005-07-21 | (svn r2663) Include variables.h only in these files which need it, not ↵ | tron | |
globally via openttd.h | |||
2005-07-21 | (svn r2660) Get rid of some more shifting/anding/casting | tron | |
2005-07-20 | (svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵ | tron | |
of GB - should be a bit nicer to read | |||
2005-07-13 | (svn r2560) Fix: various minor code changes. | ludde | |
Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC. | |||
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-27 | (svn r2492) Remove some pointless casts and fix some nearby indentation | tron | |
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 r2485) Missed two uint -> TileIndex, thanks _Luca_ | tron | |
2005-06-24 | (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" | 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 | |
2005-05-30 | (svn r2384) - Fix: Check selling land and setting player colour. Also an ↵ | Darkvater | |
extra map-bounds check for terraforming; inspired by the monkey (and Tron :) ) | |||
2005-05-12 | (svn r2300) - CodeChange: check the last number of commands, now only the ↵ | Darkvater | |
refit ones remain, and some server-only commands. - CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ() - Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders() | |||
2005-05-09 | (svn r2286) - CodeChange: paramcheck the next batch of commands. | Darkvater | |
- Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels | |||
2005-05-07 | (svn r2279) - Fix: Check the parameters of the first 10 Commands. While ↵ | Darkvater | |
there also add proper comments for the functions and fix up CmdFailed() | |||
2005-03-26 | (svn r2075) -Fix: added missing breaks in switches | truelight | |
-Fix: added const for a const variable | |||
2005-02-05 | (svn r1802) Fix typos made in r1797 | tron | |
2005-02-04 | (svn r1797) Clean up TileLoopClearHelper() a bit: | tron | |
- if cascades -> switch - uint -> TileIndex - (uint)-1 -> INVALID_TILE - don't treat non-flags as flags | |||
2005-01-29 | (svn r1713) Split off several functions which query/set information about a ↵ | tron | |
single tile from map.h and put them into a seperate file tile.h | |||
2005-01-28 | (svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D() | tron | |
These scale a number relative to the map size/circumference. Use them to scale the amount of map objects. Of course at the moment they return just the input, because there are no bigger/smaller maps yet. | |||
2005-01-23 | (svn r1631) A couple of fixes for the signed/unsigned warnings. Only ↵ | dominik | |
train_cmd.c remains to need fixing... | |||
2005-01-22 | (svn r1596) Add some more statics | tron | |
2005-01-22 | (svn r1594) Convert all undefined parameter lists to (void) and add the ↵ | tron | |
appropriate warning flags in the Makefile | |||
2005-01-18 | (svn r1560) Introduce SetTileType() and SetTileHeight() | tron | |
Replace direct references to _map_type_and_height with these | |||
2005-01-16 | (svn r1545) Add TileHeight() which returns the height (not multiplied by 8) | tron | |
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType() |