diff options
| author | Pheenoh <pheenoh@gmail.com> | 2022-12-22 13:02:32 -0700 |
|---|---|---|
| committer | Pheenoh <pheenoh@gmail.com> | 2022-12-22 13:02:32 -0700 |
| commit | 861541a4d25cc5ac070afbd367ea3d22351b066c (patch) | |
| tree | e737d6b2cdb9e277e737ed70ac3c0381f396d950 /src/d/d_timer.cpp | |
| parent | 4d77ac57d2695c8b21cd8f3a3356b20ab897aa22 (diff) | |
dTimer_isStart
Diffstat (limited to 'src/d/d_timer.cpp')
| -rw-r--r-- | src/d/d_timer.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/d/d_timer.cpp b/src/d/d_timer.cpp index a1fef2a117..add562a252 100644 --- a/src/d/d_timer.cpp +++ b/src/d/d_timer.cpp @@ -860,8 +860,7 @@ u32 dTimer_createGetIn2D(s32 param_0, cXyz param_1) { /* 80261188-802611F0 25BAC8 0068+00 1/1 0/0 0/0 .text dTimer_createStart2D__FlUs */ static int dTimer_createStart2D(s32 param_0, u16 param_1) { - dTimer_c* timer = dComIfG_getTimerPtr(); - if (timer) { + if (dComIfG_getTimerPtr()) { param_0 = dComIfG_getTimerPtr()->createStart(param_1); } else { param_0 = 0; @@ -871,9 +870,17 @@ static int dTimer_createStart2D(s32 param_0, u16 param_1) { } /* 802611F0-80261244 25BB30 0054+00 0/0 0/0 5/5 .text dTimer_isStart__Fv */ -#ifdef NONMATCHING +#ifndef NONMATCHING int dTimer_isStart() { - + int ret; + if (dComIfG_getTimerPtr()) { + ret = dComIfG_getTimerPtr()->isStart(); + } else { + ret = 0; + } + + return ret; + } #else #pragma push |
