Talk:Version/@comment-90.206.131.157-20121001212935/@comment-5116140-20121001232540

There are two kinds of fixes for the Negative Coin Big.

Quick and Long-Term

1. The quick fix is indeed to subtract X from both premium_earned and premium_earned_spent where X ≤premium_earned_spent. This would not affect the Coin balance at all. (since it is the difference of these two)

Once could just select X = premium_earned_spent as this could be done for every one, and would reset  '''premium_earned_spent = 0, giving each player the maximum possible buffer. '''(without using negative numbers) If negatives are allowed, we can do much better.

2. The long term fix (perhaps in version 1.15.1) is to simply change both of these integers to longs (they are now type int ) This would increase each number to 64 bits.

Now 2^64 is approximately 18.4 billion billion, and even accounting for negatives and new levels in the future, no player will ever exceed these larger limits. This would involve simple changes to the code like replacing the declaration:

int '''premium_earned_spent = 0; // Declare and initialize this variable. '''

by 

long premium_earned_spent = 0;

That should take all of one minute. Easy!