tron
a4bf608d40
(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
20 years ago
tron
2dd3247a4a
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
20 years ago
ludde
c62563bc5c
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
20 years ago
ludde
7bcce65053
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder.
...
- Penalties for red signals and for slopes.
- Increased the search depth to work better with large train networks.
20 years ago
matthijs
e675794812
(svn r2514) - Codechange: [NPF] Move the checking of railtype into a funciton IsCompatibleRail().
...
- Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails.
- Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
20 years ago
tron
5cbd8b598c
(svn r2492) Remove some pointless casts and fix some nearby indentation
20 years ago
tron
2b73dec567
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
20 years ago
tron
a733fede9b
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
20 years ago
tron
a9b95b3cbb
(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
20 years ago
Darkvater
ba8c649fac
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
20 years ago
tron
39858e696b
(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
61a6bc544d
(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
truelight
0c587b1a60
(svn r1535) -Fix: bah, I hate to be wrong.. oh, euh, wrong copy/paste from TPFMode 1
20 years ago
tron
f0be7b6192
(svn r1475) Fix some more signed/unsigned comparison warnings
20 years ago
tron
414ac3286b
(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
truelight
8e28e8efc3
(svn r1400) -Fix: signal stays red if a track is removed (Darkvater / Tron / TrueLight)
20 years ago
tron
fa1564a1a4
(svn r1391) Make an assert map size agnostic
20 years ago
tron
e4cf2ba1b3
(svn r1386) Move TileIndexDiff to map.h
...
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
20 years ago
truelight
507c5a692b
(svn r1209) -Fix: fix compiler warning (sorry)
20 years ago
truelight
815d4284c3
(svn r1208) -Fix: the owner-check introduced in r1203 now also works correctly for
...
bridges (the middle-parts don't have any owner)
20 years ago
truelight
01839321ea
(svn r1203) -Fix: the pathfinder no longer sees rail with an other owner as a
...
possible route. This also makes sure signals don't show red because
there is a train on the track of an other owner.
20 years ago
tron
a148ff4e0d
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
20 years ago
tron
ecf1c35849
(svn r907) Sprinkle holy ANSI water:
...
- "inline" must before the return type (and after "static")
- Initialise all struct members, not just some of them
- Remove (one) spurious semicolon
20 years ago
tron
fca55e3741
(svn r793) Merge INLINE -> inline replacement (revision 376)
20 years ago
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
20 years ago
darkvater
edf841fb6f
(svn r328) -Fix: remove some unlogical alloca()s (Tron)
20 years ago
darkvater
bf703a0e82
(svn r242) -Fix: Pathfinding bug for road vehicles introduced in r160 fixed (blathijs)
...
-Fix: Pathfinding under bridges bug for ships introduced in r160 fixed (Darkvater)
20 years ago
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
20 years ago
truelight
10d54ac604
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
...
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
20 years ago
truelight
b5a0840621
(svn r149) -Fix: [997703] Junction after tunnel bug (blathijs)
20 years ago
darkvater
f422014960
(svn r23) -Some omments on the code (blathijs)
20 years ago
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
20 years ago