(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
This commit is contained in:
2
elrail.c
2
elrail.c
@@ -183,7 +183,7 @@ static void DrawCatenaryRailway(const TileInfo *ti)
|
||||
AdjustTileh(ti->tile, &tileh[TS_HOME]);
|
||||
|
||||
for (i = DIAGDIR_NE; i < DIAGDIR_END; i++) {
|
||||
TileIndex neighbour = ti->tile + TileOffsByDir(i);
|
||||
TileIndex neighbour = ti->tile + TileOffsByDiagDir(i);
|
||||
uint foundation = 0;
|
||||
int k;
|
||||
|
||||
|
Reference in New Issue
Block a user