Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | |||
2005-01-16 | (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn ↵ | tron | |
them into inline functions and add some asserts | |||
2005-01-14 | (svn r1504) enummed town ratings (Jango) | celestar | |
2005-01-12 | (svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared ↵ | truelight | |
it for dynamic arrays | |||
2005-01-09 | (svn r1451) Fix some of the signed/unsigned comparison warnings | tron | |
2005-01-07 | (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn ↵ | tron | |
the latter into inline functions names Tile[XY] | |||
2005-01-06 | (svn r1402) Trim trailing whitespace | tron | |
2005-01-06 | (svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff | tron | |
2005-01-04 | (svn r1366) -Fix: [1093186] rough land in snow upon dying of tree | darkvater | |
2005-01-03 | (svn r1355) -Fix: [1092473] random trees in scenario editor do not overwrite ↵ | darkvater | |
rocks as well | |||
2005-01-03 | (svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place ↵ | darkvater | |
rocks on trees and vice versa | |||
2005-01-03 | (svn r1347) -Fix: Some were fixed for the trees -> Only copy the lowest two ↵ | darkvater | |
bits (amount of snow/desert) from map5 to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide; | |||
2005-01-03 | (svn r1345) Only copy the lowest two bits (amount of snow/desert) from map5 ↵ | tron | |
to map2 when placing trees, before this happened implicitly because map2 was just 8 bits wide | |||
2004-12-30 | (svn r1299) -Fix: [ 1092473 ] In SE, when trees are placed randomly, they ↵ | truelight | |
are no longer placed on farmland | |||
2004-12-28 | (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and ↵ | truelight | |
loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!! | |||
2004-12-15 | (svn r1117) Move map arrays and some related macros into their own files ↵ | tron | |
map.c and map.h | |||
2004-12-04 | (svn r925) Use sound enums | tron | |
Also play the correct sound when a toyland road vehicle breaks down | |||
2004-11-25 | (svn r815) Include strings.h only in the files which need it. | tron | |
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled. | |||
2004-11-23 | (svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent ↵ | tron | |
with its own name and all other DO_* flags. Now it is active-true. | |||
2004-11-21 | (svn r724) Remove restriction that a tile can only accept 3 cargo types. | tron | |
This especially enables houses to accept passengers, mail, goods AND food. Add string templates for up to 5 cargo types for the tile info window. If more are needed just add them. Simplify (de-uglify) the logic for cargo acceptence for houses and split the goods/food table into two. The acceptance is unmodified, but accepting goods AND food is now trivially possible. The exact amounts have to be decided. This is based on Celestar's changes in the map branch plus some further bits that will be merged there soon. | |||
2004-11-14 | (svn r604) -Fix: [ 999669 ] Wrong trees (toyland's) in sub-tropical ↵ | tron | |
landscape style Tree generation code sometimes set the non-existent growth state 7 This could also become manifest in snow covered trees below the swnow line in arctic climate and similar effects | |||
2004-11-05 | (svn r513) Merge revisions 402, 416, 417, 478, 479, 511, 512 from map to trunk | tron | |
This includes 2 fixes -Fix: [1048596] Monorail and Maglev sounds are swapped (r511) -Add special case to load the jackhammer sound (r478) The rest are cleanups und enumeration to make merging possible/easier | |||
2004-09-10 | (svn r194) -Codechange: stripping trailing-spaces. Please keep this that way! | truelight | |
2004-09-05 | (svn r161) -Fix: added missing file to project and solved wrong type bug | darkvater | |