mirror of https://github.com/yaz0r/FITD.git
25 lines
385 B
C++
25 lines
385 B
C++
#include "common.h"
|
|
|
|
int timerSaved = false;
|
|
unsigned int timerSavedValue = 0;
|
|
|
|
void SaveTimerAnim(void)
|
|
{
|
|
if(timerSaved==0)
|
|
{
|
|
timerSavedValue = timeGlobal;
|
|
}
|
|
timerSaved++;
|
|
}
|
|
|
|
void RestoreTimerAnim(void)
|
|
{
|
|
assert(timerSaved);
|
|
timerSaved--;
|
|
if(timerSaved == 0)
|
|
{
|
|
timeGlobal = timerSavedValue;
|
|
timer = timeGlobal;
|
|
}
|
|
}
|