mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 02:19:09 +00:00
Codechange: simplify ToTileIndexDiff by just calling TileDiffXY
This commit is contained in:
@@ -451,7 +451,7 @@ debug_inline static uint TileY(TileIndex tile)
|
||||
*/
|
||||
inline TileIndexDiff ToTileIndexDiff(TileIndexDiffC tidc)
|
||||
{
|
||||
return (tidc.y << Map::LogX()) + tidc.x;
|
||||
return TileDiffXY(tidc.x, tidc.y);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user