Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions code/io/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,9 @@ bool timestamp_elapsed(int stamp) {
if (stamp == 0) {
return false;
}
if (stamp == 1) {
return true;
}

return timestamp_ms() >= stamp;
}
Expand Down Expand Up @@ -539,6 +542,9 @@ bool ui_timestamp_elapsed_last_frame(UI_TIMESTAMP ui_stamp) {

bool timestamp_elapsed_safe(int a, int b) {
if (a == 0) {
return false;
}
if (a == 1) {
return true;
}

Expand Down