Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-30 | (svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. ↵ | belugas | |
Although it was an accessor, nor his usage nor the values were clear. | |||
2006-03-19 | (svn r3983) Use existing functions to access tree and road info | tron | |
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-05 | (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme | tron | |
2006-02-24 | (svn r3668) Add a function to turn a tile into a tree tile | tron | |
2006-02-24 | (svn r3665) Add a function to turn a tile into a clear tile | 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-09 | (svn r3583) Fix 2 glitches in r3556 | tron | |
2006-02-05 | (svn r3556) Add accessors for handling tree tiles | tron | |
See tree.h for details | |||
2006-02-04 | (svn r3532) Revert r3467, was total nonesense, my fault | tron | |
2006-02-02 | (svn r3520) Remove unused parameters from some functions | tron | |
2006-02-01 | (svn r3516) Fix embarrassing bug 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-01-29 | (svn r3467) - CodeChange: Remove an useless assignment (reads a value and ↵ | Darkvater | |
just writes it back)" tree_cmd.c | |||
2006-01-26 | (svn r3446) - Fix: incorrect validating of tree-planting command which can ↵ | Darkvater | |
allow a buffer-overflow (Tron) | |||
2005-11-16 | (svn r3196) Use structs instead of magic offsets into arrays | tron | |
2005-11-15 | (svn r3186) Unnecessary casts and truncation | 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-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-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-30 | (svn r2763) Small cleanup and improve a few comments | tron | |
2005-07-30 | (svn r2758) Add the AB() macro to add a value to a bit range and use it in a ↵ | tron | |
few places, also make use of GB and SB nearby | |||
2005-07-29 | (svn r2750) -Fix: Tree tiles above the snow line got redrawn ↵ | tron | |
disproportionately often | |||
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 r2663) Include variables.h only in these files which need it, not ↵ | tron | |
globally via openttd.h | |||
2005-07-20 | (svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite | celestar | |
2005-07-18 | (svn r2628) - Fix: Planting trees does not result in a MapSize() assertion ↵ | Darkvater | |
anymore; introduced in r2598 | |||
2005-07-17 | (svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), ↵ | tron | |
because it was overkill | |||
2005-07-16 | (svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is ↵ | celestar | |
steep (i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance | |||
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-25 | (svn r2487) Replace TILE_XY by TileXY/TileDiffXY | tron | |
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 | |
2005-05-09 | (svn r2288) - CodeChange: protected the next batch of commands (41 so far, ↵ | Darkvater | |
out of 115). - CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking. - CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count) - CodeChange: added IsTownIndex() in following of IsStationIndex(), etc. - Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now) | |||
2005-02-14 | (svn r1874) Fix bug introduced in r1839 which placed snow covered trees ↵ | tron | |
below the snow line ([1121680]) | |||
2005-02-04 | (svn r1790) Make CmdPlantTree() and related functions more safe and ↵ | tron | |
(hopefully) more readable: - check if end tile is on the map - uint -> TileIndex - if cascades -> switch | |||
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-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 |