Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Time Since Death' hour wrapping fix #5374

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

SabreML
Copy link
Member

@SabreML SabreML commented Jan 3, 2024

About the pull request

Tweaks the 'Time Since Death' counter added in #5314 so that it doesn't wrap around to '00:00' when it reaches one hour, instead adding an hour counter to the number.

I tried to see if I could make the minutes counter continue above 60 instead, but the best method I could figure out involved writing a whole time parsing thing, plus something to add zero padding so that it would display '61:02' and not '61:2', so I decided to just add a >= check instead.

Technically this does just push the wrapping threshold back a bit rather than actually fixing it, but if a round's been going for more than 24 hours then there's probably bigger problems.

Explain why it's good for the game

Less confusing for ghosted players.

Testing Photographs and Procedure

Screenshots & Videos
dreamseeker_aAX3JoOxs8.mp4

(Runtime is unrelated, something to do with the DB I think?)

Changelog

🆑
fix: Made the 'Time Since Death' counter show hours if it passes 1 hour, rather than wrapping the minutes back to 0.
/:cl:

@github-actions github-actions bot added the Fix Fix one bug, make ten more label Jan 3, 2024
@Drulikar Drulikar marked this pull request as draft January 3, 2024 21:45
thank you drulikar
@SabreML SabreML marked this pull request as ready for review January 3, 2024 22:04
@SabreML SabreML requested a review from Drulikar January 3, 2024 22:04
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look fine.

@Drulikar Drulikar added this pull request to the merge queue Jan 4, 2024
Merged via the queue into cmss13-devs:master with commit bc1dcb1 Jan 4, 2024
27 checks passed
cm13-github added a commit that referenced this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Fix one bug, make ten more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants