mirror of https://github.com/OpenTTD/OpenTTD
Codechange: simplify ToTileIndexDiff by just calling TileDiffXY
parent
1998e94ae7
commit
392bcf5c9a
|
@ -439,7 +439,7 @@ debug_inline static uint TileY(TileIndex tile)
|
||||||
*/
|
*/
|
||||||
inline TileIndexDiff ToTileIndexDiff(TileIndexDiffC tidc)
|
inline TileIndexDiff ToTileIndexDiff(TileIndexDiffC tidc)
|
||||||
{
|
{
|
||||||
return (tidc.y << Map::LogX()) + tidc.x;
|
return TileDiffXY(tidc.x, tidc.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue