Darkvater
3ad11e0ad4
(svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed()
20 years ago
tron
9e53b86dca
(svn r2093) uint -> TileIndex, remove commented out code and a local variable, which was only used once
20 years ago
tron
b973ad1df9
(svn r1888) The landscape template sprites are ordinary sprites, treating them as non-sprites resulted in yet another endianess issue. This fixes the problem introduced in r1855
20 years ago
tron
204d08140a
(svn r1867) Include tables/sprites.h only in files which need it
20 years ago
tron
6b83a05ada
(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()
...
-Fix: [1116619] Generate the correct smoke type for diesel trains
20 years ago
tron
94c75f33bb
(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)
20 years ago
tron
2a151d9354
(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate
20 years ago
tron
f8d97a5f61
(svn r1839) Move GetTileSlope() and GetTileZ() into tile.[ch] and use more explicit types as parameters
20 years ago
tron
88ebe22d8b
(svn r1782) Remove line which should've been removed in r1779 and caused map generation to hang infinitely
20 years ago
tron
5e1364daeb
(svn r1779) Make the map generation code slightly more readable
20 years ago
tron
0601293edb
(svn r1777) Fix map generation for tropical and arctic landscape on larger/smaller maps
20 years ago
matthijs
a2dec6c32a
(svn r1751) - Feature: New PathFinder (NPF).
...
- Supports trains, road vehicles and ships.
- Uses A* pathfinding (same codebase as the new ai).
- Currently unlimited search depth, so might perform badly on large maps/networks (especially ships).
- Will always find a route if there is one.
- Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values).
- With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again.
- Feature: Disabling 90 degree turns for trains and ships.
- Requires NPF to be enabled.
- Ships and trains can no longer make weird 90 degree turns on tile borders.
- Codechange: Removed table/directions.h.
- table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location?
- Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault.
- Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64.
- Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED.
- Codechange: Moved TileAddWrap() to map.[ch]
- Add TileIndexDiffCByDir(), TileIndexDiffCByDir().
- Codechange: Moved IsTrainStationTile() to station.h
- Add: IsRoadStationTile() and GetRoadStationDir().
20 years ago
tron
cc7f7220c0
(svn r1726) Move an assert() because it could not catch all cases of incorrect input where it was placed
20 years ago
tron
3a89108a55
(svn r1722) -Feature: Bigger maps - anyone?
20 years ago
tron
97ae59fe1a
(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.
...
This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name.
20 years ago
tron
f08d102ac2
(svn r1715) Move [GS]etMapExtraBits to tile.[ch]
20 years ago
tron
5885b31bb4
(svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
20 years ago
tron
3617d24318
(svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()
...
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.
20 years ago
tron
eebb2f196d
(svn r1697) Remove superflous special case for the VOID border tiles in FindLandscapeHeightByTile()
...
While here clean up some other stuff: uint -> TileIndex, assert() that the TileIndex is valid and remove a line which was already commented out
20 years ago
tron
8742b63fa1
(svn r1686) Fix (Work around?) crash when generating tropical maps
20 years ago
tron
a2971d0449
(svn r1683) Fix placement of MP_VOID tiles. On square maps it accidently works, but on non-square maps the wrong tiles would get marked as MP_VOID
20 years ago
tron
993a106679
(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
...
WARNING: If i made any mistake here it WILL lead to corrupted savegames!
20 years ago
tron
7f14b69022
(svn r1641) Remove a boundary check added in r1332 to work around a bug - the real cause has been eleminated in r1413.
...
Leave an assert() just to be sure...
20 years ago
tron
e5cd6b6193
(svn r1596) Add some more statics
20 years ago
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
tron
31d6f87d80
(svn r1560) Introduce SetTileType() and SetTileHeight()
...
Replace direct references to _map_type_and_height with these
20 years ago
tron
022b8cea37
(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
...
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
20 years ago
tron
ae796740aa
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
20 years ago
tron
49584082a0
(svn r1451) Fix some of the signed/unsigned comparison warnings
20 years ago
tron
35972e68e1
(svn r1415) Move TILE_FROM_XY and TILE_XY to map.h and push TILE_[XY] bits from map.h into map.c.
...
Now the whole source except map.c is independent of TILE_[XY]_BITS!
20 years ago
tron
7ca6b2b8b0
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
20 years ago
dominik
f5c33e5073
(svn r1413) Fixed a serious memory leak problem. The invisible tiles on the 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.
20 years ago
tron
f8c95a1dbe
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
20 years ago
darkvater
6edb21231e
(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for 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.
20 years ago
tron
c0702318d2
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
20 years ago
darkvater
39f8b82640
(svn r1338) -Fix: fix signed/unsigned warnings introduced when ditching the macros for map querying.
20 years ago
tron
32bfe0dddd
(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]
...
While here replace one erroneous TILE_MAX_X with MapMaxY()
20 years ago
truelight
7e89cd8643
(svn r1332) -Fix: Desert-landscape does no longer crash (protected GetMapExtraBits
...
from overflowing)
20 years ago
truelight
5d06584545
(svn r1321) -Fix: Revision 1302 partly solved the problem and created an other.
...
Should now really be solved.. now only MP_WATER is owned by OWNER_WATER
20 years ago
truelight
4b38004a49
(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned by
...
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.
20 years ago
truelight
c2ee8d70e4
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and 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!!
20 years ago
tron
e75954a7ab
(svn r1144) Don't rely on sizeof() to determine the map size, use MapSize() instead
20 years ago
tron
765ecfed84
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
20 years ago
tron
57adc97733
(svn r724) Remove restriction that a tile can only accept 3 cargo types.
...
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.
20 years ago
truelight
1a0a7ed763
(svn r184) -Fix: starting a new game in DesertLandscape crashed the game
20 years ago
truelight
10d54ac604
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
...
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
20 years ago
truelight
a0ba5a7939
(svn r132) -Fix: [1014278] TileAddWrap() gave wrong results. Fixed now.
20 years ago
dominik
b3cdae2af1
(svn r51) Yet another slope graphics fix
20 years ago
dominik
ca120eedad
(svn r40) Final slope graphics fix
20 years ago
dominik
0c25a4b10c
(svn r38) Preliminary slopes graphics fix. Neighboring tile check not done yet
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago