Skip to content

Commit

Permalink
Fix roundtrip calculation oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightkingale committed Oct 5, 2023
1 parent 23e9019 commit d43f818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void updateTime() {
uint64_t timeTook = roundtrip / 2;

// Subtract the time it took to get the time from the server.
time -= OSMillisecondsToTicks(timeTook);
time -= timeTook;

if (offsetHours < 0) {
time -= OSSecondsToTicks(abs(offsetHours) * 60 * 60);
Expand Down

0 comments on commit d43f818

Please sign in to comment.