mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
fix naming for global var
This commit is contained in:
parent
5d487ab790
commit
d55523a1ed
3 changed files with 6 additions and 6 deletions
|
@ -11,4 +11,4 @@ unsigned char g_mousemoved = 0;
|
||||||
int _DAT_00410050 = 0;
|
int _DAT_00410050 = 0;
|
||||||
int _DAT_00410064 = 0;
|
int _DAT_00410064 = 0;
|
||||||
int _DAT_004101bc = 200;
|
int _DAT_004101bc = 200;
|
||||||
int _last_frame_time = 0;
|
long g_lastFrameTime = 0;
|
||||||
|
|
|
@ -12,6 +12,6 @@ extern unsigned char g_mousemoved;
|
||||||
extern int _DAT_00410050;
|
extern int _DAT_00410050;
|
||||||
extern int _DAT_00410064;
|
extern int _DAT_00410064;
|
||||||
extern int _DAT_004101bc;
|
extern int _DAT_004101bc;
|
||||||
extern int _last_frame_time;
|
extern long g_lastFrameTime;
|
||||||
|
|
||||||
#endif // DEFINE_H
|
#endif // DEFINE_H
|
||||||
|
|
|
@ -568,14 +568,14 @@ void Isle::tick(BOOL sleepIfNotNextFrame)
|
||||||
if (!Timer()) return;
|
if (!Timer()) return;
|
||||||
|
|
||||||
long currentTime = Timer()->GetRealTime();
|
long currentTime = Timer()->GetRealTime();
|
||||||
if (currentTime < _last_frame_time) {
|
if (currentTime < g_lastFrameTime) {
|
||||||
_last_frame_time = -this->m_frameDelta;
|
g_lastFrameTime = -this->m_frameDelta;
|
||||||
}
|
}
|
||||||
if (this->m_frameDelta + _last_frame_time < currentTime) {
|
if (this->m_frameDelta + g_lastFrameTime < currentTime) {
|
||||||
if (!Lego()->vtable40()) {
|
if (!Lego()->vtable40()) {
|
||||||
TickleManager()->vtable08();
|
TickleManager()->vtable08();
|
||||||
}
|
}
|
||||||
_last_frame_time = currentTime;
|
g_lastFrameTime = currentTime;
|
||||||
|
|
||||||
if (_DAT_004101bc == 0) {
|
if (_DAT_004101bc == 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue