The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
Avoid MATK Overflow
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Danilov3s
Hey all! Greetings,
Recently I've been trying to avoid the MATK infamous overflow when it reaches the maximum, but no success at all.
I tried protecting the values from getting bigger than SHRT_MAX (32727) but still nothing changed
I tried poking aroud in the status.cpp, and found that when it executes this piece of code at line 5239
And the matk_max is greater than 30097, the result is 87 (I'm not 100% sure about these values, but they're approximated)
I've also tried changing the matk_min and matk_max to int, but I'm not sure if I did it right..
This is what I mean by "overflow" (the values just go negative)
Thank you!
Edited by SlimLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.