Network/ENetProtocol: Fix missing inline keyword

This commit is contained in:
SirLynix 2024-02-22 19:12:36 +01:00
parent b08897628c
commit f290cf2f9e
1 changed files with 5 additions and 6 deletions

View File

@ -2,30 +2,29 @@
// This file is part of the "Nazara Engine - Network module" // This file is part of the "Nazara Engine - Network module"
// For conditions of distribution and use, see copyright notice in Export.hpp // For conditions of distribution and use, see copyright notice in Export.hpp
namespace Nz namespace Nz
{ {
UInt32 ENetTimeDifference(UInt32 a, UInt32 b) inline UInt32 ENetTimeDifference(UInt32 a, UInt32 b)
{ {
return (ENetTimeLess(a, b)) ? b - a : a - b; return (ENetTimeLess(a, b)) ? b - a : a - b;
} }
bool ENetTimeLess(UInt32 a, UInt32 b) inline bool ENetTimeLess(UInt32 a, UInt32 b)
{ {
return (a - b >= ENetTimeOverflow); return (a - b >= ENetTimeOverflow);
} }
bool ENetTimeLessEqual(UInt32 a, UInt32 b) inline bool ENetTimeLessEqual(UInt32 a, UInt32 b)
{ {
return !ENetTimeGreater(a, b); return !ENetTimeGreater(a, b);
} }
bool ENetTimeGreater(UInt32 a, UInt32 b) inline bool ENetTimeGreater(UInt32 a, UInt32 b)
{ {
return ENetTimeLess(b, a); return ENetTimeLess(b, a);
} }
bool ENetTimeGreaterEqual(UInt32 a, UInt32 b) inline bool ENetTimeGreaterEqual(UInt32 a, UInt32 b)
{ {
return !ENetTimeLess(a, b); return !ENetTimeLess(a, b);
} }