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

Fix time credit headup #258

Merged
merged 1 commit into from
Dec 6, 2022
Merged

Fix time credit headup #258

merged 1 commit into from
Dec 6, 2022

Conversation

zear
Copy link
Collaborator

@zear zear commented Dec 3, 2022

Store the previous time credit in gLast_time_credit_amount instead of gLast_time_credit_headup. The latter is supposed to hold the headup slot number and gets overwritten with NewTextHeadupSlot index, effectively capping the time credits at the value of +13.

This fixes #182.

Store the previous time credit in `gLast_time_credit_amount` instead of
`gLast_time_credit_headup`. The latter is supposed to hold the headup
slot number and gets overwritten with time unrelated values.

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
@dethrace-labs
Copy link
Owner

Nice find. Did you check the other references to gLast_time_credit_headup and gLast_time_credit_amount to make sure they aren’t transposed in other places?

@zear
Copy link
Collaborator Author

zear commented Dec 3, 2022

Yes, gLast_time_credit_headup is only used in AwardTime and ClearHeadups, while gLast_time_credit_amount hasn't been used at all (that's how I realized the mixup).

@madebr madebr merged commit 676d26d into dethrace-labs:main Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extra time blue counter displays invalid number sometimes
3 participants