1
0
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:
Rubidium
2024-10-18 16:13:51 +02:00
parent 53ed29bd04
commit 9bc668fda5

View File

@@ -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);
}