mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
gym: fix compiler warning
This commit is contained in:
parent
953f30205e
commit
004e6b4b4a
1 changed files with 3 additions and 1 deletions
|
@ -14,12 +14,14 @@ static bool m_IsInventoryOpenEnabled = true;
|
||||||
static bool m_IsAssaultTimerDisplay = false;
|
static bool m_IsAssaultTimerDisplay = false;
|
||||||
static bool m_IsAssaultTimerActive = false;
|
static bool m_IsAssaultTimerActive = false;
|
||||||
|
|
||||||
|
static int32_t M_GetBestTime(void);
|
||||||
static bool M_StoreAssaultTime(uint32_t time);
|
static bool M_StoreAssaultTime(uint32_t time);
|
||||||
|
|
||||||
static int32_t M_GetBestTime(void)
|
static int32_t M_GetBestTime(void)
|
||||||
{
|
{
|
||||||
const ASSAULT_STATS *const assault = &g_Config.profile.assault_stats;
|
const ASSAULT_STATS *const assault = &g_Config.profile.assault_stats;
|
||||||
return assault->total_attempts > 0 ? assault->entries[0].time : NO_TIME;
|
return assault->total_attempts > 0 ? (int32_t)assault->entries[0].time
|
||||||
|
: NO_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool M_StoreAssaultTime(const uint32_t time)
|
static bool M_StoreAssaultTime(const uint32_t time)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue