@Rjsmith: Notice that a bag of gold can hold up to 10 mil. of gold and that the town bank has a limited number of bag slots. The problem must be here (in the game logic) and not in the signed-integer value of gold. Notice also that a 32-bit signed integer can hold a value greater than 2,000,000,000.
I suggest to keep your money reasonably high throughout the game, not allowing extremes. I always have about 7,000,000 gold. When the gold drops below 4,000,000 then the gold is doubled by the "inn feature".
|