Found a name for nameless_flag!

This commit is contained in:
Clownacy 2020-04-16 14:05:44 +01:00
parent ff45da6a0e
commit 1898633602

View file

@ -760,7 +760,7 @@ BOOL QuitMMTimer();
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
UINT ExactTime = 13; // 最小精度 (Minimum accuracy) UINT ExactTime = 13; // 最小精度 (Minimum accuracy)
UINT TimerID; UINT TimerID;
BOOL nameless_flag; BOOL bTimer;
/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
// タイマー精度を設定する。 (Set timer accuracy.) // タイマー精度を設定する。 (Set timer accuracy.)
@ -809,7 +809,7 @@ BOOL StartTimer(DWORD dwTimer)
if (ret != TIMERR_NOERROR) if (ret != TIMERR_NOERROR)
return FALSE; return FALSE;
nameless_flag = TRUE; bTimer = TRUE;
return TRUE; return TRUE;
} }
@ -843,7 +843,7 @@ BOOL QuitMMTimer(void)
{ {
MMRESULT ret; MMRESULT ret;
if (!nameless_flag) if (!bTimer)
return FALSE; return FALSE;
if(TimerID != TIMERR_NOERROR) if(TimerID != TIMERR_NOERROR)
@ -859,7 +859,7 @@ BOOL QuitMMTimer(void)
if (ret != TIMERR_NOERROR) if (ret != TIMERR_NOERROR)
return FALSE; return FALSE;
nameless_flag = FALSE; bTimer = FALSE;
return TRUE; return TRUE;
} }