1
0
Fork 0

Codechange: simplify ToTileIndexDiff by just calling TileDiffXY

pull/13015/head
Rubidium 2024-10-18 16:13:51 +02:00 committed by rubidium42
parent 1998e94ae7
commit 392bcf5c9a
1 changed files with 1 additions and 1 deletions

View File

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