summaryrefslogtreecommitdiff
path: root/include/SSystem
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2023-05-28 10:21:28 +0300
committerGitHub <noreply@github.com>2023-05-28 00:21:28 -0700
commitfcb6ae541fa4773b2db436e85daa9cdbb9ae45a5 (patch)
treed5a67cd217fa0d593f714d766c3b9dee8ca754c2 /include/SSystem
parent2baa07dbf6452e8dc5d241c6d5982be1df354e61 (diff)
setFadeColor fix, some d_msg_flow functions (#339)
Diffstat (limited to 'include/SSystem')
-rw-r--r--include/SSystem/SComponent/c_lib.h7
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);