(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:
@@ -132,7 +132,7 @@ static inline void MakeLockTile(TileIndex t, Owner o, byte section)
|
||||
|
||||
static inline void MakeLock(TileIndex t, Owner o, DiagDirection d)
|
||||
{
|
||||
TileIndexDiff delta = TileOffsByDir(d);
|
||||
TileIndexDiff delta = TileOffsByDiagDir(d);
|
||||
|
||||
MakeLockTile(t, o, LOCK_MIDDLE + d);
|
||||
MakeLockTile(t - delta, o, LOCK_LOWER + d);
|
||||
|
||||
Reference in New Issue
Block a user