Codechange: instead of global pointer to stack variable, just put variable in that global

Removes one indirection and a dangling pointer to a stack location
This commit is contained in:
Rubidium
2023-01-28 10:53:42 +01:00
committed by rubidium42
parent d51d08ddcb
commit 04d10b3d2d
2 changed files with 16 additions and 18 deletions

View File

@@ -40,8 +40,8 @@ DECLARE_ENUM_AS_BIT_SET(VehicleEnterTileStatus)
/** Tile information, used while rendering the tile */
struct TileInfo {
uint x; ///< X position of the tile in unit coordinates
uint y; ///< Y position of the tile in unit coordinates
int x; ///< X position of the tile in unit coordinates
int y; ///< Y position of the tile in unit coordinates
Slope tileh; ///< Slope of the tile
TileIndex tile; ///< Tile index
int z; ///< Height