Adding of _t to (u)int types, and WChar to char32_t

See: eaae0bb5e
This commit is contained in:
Jonathan G Rennison
2024-01-07 16:41:53 +00:00
parent 55d78a23be
commit 97e6f3062e
655 changed files with 7555 additions and 7555 deletions

View File

@@ -12,7 +12,7 @@
#include "road_map.h"
typedef uint32 TunnelID; ///< Type for the unique identifier of tunnels.
typedef uint32_t TunnelID; ///< Type for the unique identifier of tunnels.
static const TunnelID TUNNEL_ID_MAP_LOOKUP = 0xFFFF; ///< Sentinel ID value to store in m2 to indiciate that the ID should be looked up instead
@@ -111,13 +111,13 @@ inline void SetTunnelIndex(TileIndex t, TunnelID id)
_m[t].m2 = (id >= TUNNEL_ID_MAP_LOOKUP) ? TUNNEL_ID_MAP_LOOKUP : id;
}
void SetTunnelSignalStyle(TileIndex t, TileIndex end, uint8 style);
void SetTunnelSignalStyle(TileIndex t, TileIndex end, uint8_t style);
inline uint8 GetTunnelSignalStyle(TileIndex t)
inline uint8_t GetTunnelSignalStyle(TileIndex t)
{
if (likely(!HasBit(_m[t].m3, 7))) return 0;
extern uint8 GetTunnelSignalStyleExtended(TileIndex t);
extern uint8_t GetTunnelSignalStyleExtended(TileIndex t);
return GetTunnelSignalStyleExtended(t);
}