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

hud_bar_armor overflows with regeneration rune in CTF #651

Closed
dsvensson opened this issue Apr 19, 2022 · 0 comments · Fixed by #652
Closed

hud_bar_armor overflows with regeneration rune in CTF #651

dsvensson opened this issue Apr 19, 2022 · 0 comments · Fixed by #652

Comments

@dsvensson
Copy link
Collaborator

dsvensson commented Apr 19, 2022

When carrying the regeneration rune in CTF all armors can regenerate up to 150 points. This works fine for YA where 150 is max, and RA where max is more, but for green armor the armor bar grows outside its intended drawing region.

https://github.com/ezQuake/ezquake-source/blob/6c0f284375c66d9733943cf367585fa83f31b09e/hud_armor.c#L210-L213

Maybe it could work similar to how mega works for health?

https://github.com/ezQuake/ezquake-source/blob/6c0f284375c66d9733943cf367585fa83f31b09e/hud_health.c#L103-L106

image

...not sure about the name though... color_ga_regen sounds a bit too specific, perhaps there are other mods that can go above 100 for GA? color_ga_(plus|over|above|overflow)?

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 a pull request may close this issue.

1 participant