We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a7ee07 + 66a07fe commit f78ac49Copy full SHA for f78ac49
1 file changed
code/io/timer.cpp
@@ -489,6 +489,9 @@ bool timestamp_elapsed(int stamp) {
489
if (stamp == 0) {
490
return false;
491
}
492
+ if (stamp == 1) {
493
+ return true;
494
+ }
495
496
return timestamp_ms() >= stamp;
497
@@ -539,6 +542,9 @@ bool ui_timestamp_elapsed_last_frame(UI_TIMESTAMP ui_stamp) {
539
542
540
543
bool timestamp_elapsed_safe(int a, int b) {
541
544
if (a == 0) {
545
+ return false;
546
547
+ if (a == 1) {
548
return true;
549
550
0 commit comments