mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r1391) Make an assert map size agnostic
This commit is contained in:
parent
8a0ba57ac6
commit
fa1564a1a4
@ -158,7 +158,7 @@ static void TPFMode2(TrackPathFinder *tpf, uint tile, int direction)
|
||||
if (bits == 0)
|
||||
return;
|
||||
|
||||
assert(GET_TILE_X(tile) != 255 && GET_TILE_Y(tile) != 255);
|
||||
assert(GET_TILE_X(tile) != MapMaxX() && GET_TILE_Y(tile) != MapMaxY());
|
||||
|
||||
if ( (bits & (bits - 1)) == 0 ) {
|
||||
/* only one direction */
|
||||
|
Loading…
Reference in New Issue
Block a user