|
Post by genjeft on Sept 15, 2015 13:56:02 GMT -6
I found a problem with the USA and how high the budget can get. Attachment DeletedIf you get over roughly 2 billion for your budget it just goes negative.
|
|
|
Post by trenton59 on Sept 15, 2015 20:02:11 GMT -6
That sounds like a bug in a lot of 32bit games, I forget the exact problem, but it's in the way the program stores numbers, at some point over 2.1 billion it rolls over into the negatives. Unfortunately, I think that is bug that may be integral to the program and may not be fixable if it is like the similar bugs in other games.
|
|
|
Post by genjeft on Sept 16, 2015 8:19:54 GMT -6
Back in the days of limited computing it would be a problem. But now you can change that from an int to a long with a few keystrokes and problem solved. Or if you dont want to do that just have
int maxbudget = 2,140,000,000
if intbudget > 2,140,000,000 then intbudget = maxbudget
Something like that should catch it. Or as I said just use a long instead of an int, the limited processing days are largely over. Using a long will even work on a 32 bit system it just uses 2 memory registers as opposed to 1. Its not like the game is a resource hog to begin with.
|
|
|
Post by Fredrik W on Sept 16, 2015 11:35:36 GMT -6
Easy enough to fix, it was just that it never happened before. Thanks!
|
|