Skip to content

Commit

Permalink
Merge pull request scp-fs2open#6261 from Goober5000/timestamp_valid_t…
Browse files Browse the repository at this point in the history
…weak

refine timestamp_valid
  • Loading branch information
Goober5000 authored Nov 4, 2024
2 parents b48a55e + ebb5a27 commit 1493774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/io/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ TIMESTAMP _timestamp(); // use a leading underscore for now until all timest
UI_TIMESTAMP ui_timestamp();

inline bool timestamp_valid(int stamp) {
return stamp != 0;
return stamp > 0; // 0 is the "official" invalid for legacy timestamps, but -1 is used in a lot of places too
}

// To do timing, call this with the interval you
Expand Down

0 comments on commit 1493774

Please sign in to comment.