diff options
Diffstat (limited to 'include/SSystem')
| -rw-r--r-- | include/SSystem/SComponent/c_lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h index e0e9c2084c..886f72583d 100644 --- a/include/SSystem/SComponent/c_lib.h +++ b/include/SSystem/SComponent/c_lib.h @@ -87,7 +87,12 @@ inline T cLib_maxLimit(T val, T max) { } template <typename T> -T cLib_calcTimer(T* val); +T cLib_calcTimer(T* value) { + if (*value != 0) { + *value = *value - 1; + } + return *value; +} void MtxInit(void); void MtxTrans(f32, f32, f32, u8); |
