summaryrefslogtreecommitdiff
path: root/landscape.c
AgeCommit message (Collapse)Author
2005-01-24(svn r1641) Remove a boundary check added in r1332 to work around a bug - ↵tron
the real cause has been eleminated in r1413. Leave an assert() just to be sure...
2005-01-22(svn r1596) Add some more staticstron
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()
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-09(svn r1451) Fix some of the signed/unsigned comparison warningstron
2005-01-07(svn r1415) Move TILE_FROM_XY and TILE_XY to map.h and push TILE_[XY] bits ↵tron
from map.h into map.c. Now the whole source except map.c is independent of TILE_[XY]_BITS!
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-07(svn r1413) Fixed a serious memory leak problem. The invisible tiles on the ↵dominik
southern border now have the correct tile type (MP_VOID) again. Please note that older maps might still have incorrect border tiles, thus still causing overflows.
2005-01-06(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDifftron
2005-01-04(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for ↵darkvater
incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
2005-01-03(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) ↵tron
instead of TILES_[XY]
2005-01-03(svn r1338) -Fix: fix signed/unsigned warnings introduced when ditching the ↵darkvater
macros for map querying.
2005-01-03(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of ↵tron
TILE_MAX_[XY] While here replace one erroneous TILE_MAX_X with MapMaxY()
2005-01-03(svn r1332) -Fix: Desert-landscape does no longer crash (protected ↵truelight
GetMapExtraBits from overflowing)
2005-01-01(svn r1321) -Fix: Revision 1302 partly solved the problem and created an other. truelight
Should now really be solved.. now only MP_WATER is owned by OWNER_WATER
2004-12-30(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned bytruelight
OWNER_NONE instead of OWNER_WATER. -Fix: On InitializeLandscape the map was made MP_WATER, but OWNER_NONE. When ConvertGroundTilesIntoWaterTiles() is not called, this gives big problems (see above). Now the owner is set to OWNER_WATER by default.
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-17(svn r1144) Don't rely on sizeof() to determine the map size, use MapSize() ↵tron
instead
2004-12-15(svn r1117) Move map arrays and some related macros into their own files ↵tron
map.c and map.h
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-09-08(svn r184) -Fix: starting a new game in DesertLandscape crashed the gametruelight
2004-09-05(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)truelight
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
2004-08-24(svn r132) -Fix: [1014278] TileAddWrap() gave wrong results. Fixed now.truelight
2004-08-14(svn r51) Yet another slope graphics fixdominik
2004-08-13(svn r40) Final slope graphics fixdominik
2004-08-13(svn r38) Preliminary slopes graphics fix. Neighboring tile check not done yetdominik
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight