headers, split steppable

This commit is contained in:
2026-08-07 00:56:06 +02:00
parent 6f7bd9d964
commit d2d9ef6c70
5 changed files with 41 additions and 36 deletions
+3 -5
View File
@@ -15,11 +15,9 @@ void Timer::add_time(milliseconds deltatime) {
accumulator += deltatime;
if (accumulator >= triggerinterval) {
accumulator -= triggerinterval;
if (timeraction()==true){
isdone = true;
};
triggercounter++;
if (!isinfinite && triggercounter >= triggeramount){
timeraction();
triggercount++;
if (!isinfinite && triggercount >= triggeramount){
isexpired=true;
}
}