Skip to content

Fix King Bublin Overflow#1899

Open
korrectional wants to merge 6 commits into
TwilitRealm:mainfrom
korrectional:king-bulbin-fix
Open

Fix King Bublin Overflow#1899
korrectional wants to merge 6 commits into
TwilitRealm:mainfrom
korrectional:king-bulbin-fix

Conversation

@korrectional
Copy link
Copy Markdown
Contributor

Fix to issue #1563 . While it might look like a temporary solution, if I remember correctly the maximum amount of health that Link can have is around 200, so multiplying enemy damage by 999 instead of 9999 should still lead to game over while avoiding overflows (or wathever was happening with this specific boss)

Copy link
Copy Markdown
Member

@PJB3005 PJB3005 left a comment

Choose a reason for hiding this comment

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

This really should be a clamp in the spot that's actually overflowing.

@korrectional
Copy link
Copy Markdown
Contributor Author

This time I capped everything where it will actually flow. Ia ctually included 2 caps: one in damageMagnification, although the possibilities of the overflow happening there are remote at best, and one in setDamagePoint where the overflow is likely happening. I also changed the cap and multiplication value to 999.0f like I did in the first commit, while that is not mandatory it seems to be a slightly more standard value.

@korrectional
Copy link
Copy Markdown
Contributor Author

hmm still working on it

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.

2 participants