Bug Substat gains of over 2G show as negative

r15925. Weirdeaux leveling as an AT. Just noticed that today's substats gains in Adventure / Overview show as 1,374,008,104 / 1,381,838,175 / -561,253,233.

Next win:
You gain 24394409 Strengthliness.
You gain some Muscle points!
You gain 23666803 Wizardliness.
You gain some Mysticality points!
You gain 60286238 Cheek.
You gain some Moxie points!

Substats: 1,398,402,513 / 1,405,504,978 / -500,966,995

Signed int 32 issue, apparently.
 
Thanks, I thought I remembered seeing that thread, but my searches failed me. There was one variation that I had in mind that I should have tried. I did find that latter thread. Low priority, as you say.
 

Veracity

Developer
Staff member
This could be as "simple" as declaring the "count" field of AdventureResult (and the "counts" array of AdventureMultiResult) to be longs, rather than ints. Unfortunately, when I tried that - and changed the numerous constructors and accessors to accept/return longs, rather than ints - I got many many "possible loss of precision" complaints about the places where we store getCount() into an int.

It'll take a lot more effort to fix this than I feel like spending right now.
 
Top