negative cost for startfighter
from
Stardock Forums
I was introducing my nephew to GC on my laptop and he managed to get a negative value for the cost of the starfighter. He asked "does that mean I'll get money when I buy it?" Sure enough he got a gazillion credits. I think there needs to be a reasonableness check & assertion when 1) the price is read from the structure, 2) when the price is placed in the message to dialog box. If it is too much work to build an array (and hash its values so you know the array has not been stepped upon is still valid, perhaps just compare it to a global constant MAX_ITEM_COST. Needless to say all proper strategy and subtlety went out the window and it was buy, buy, buy: not quite the lesson I wanted him to learn.
Additionally, one of the report windows mentioned that 4 gaziliion percent of the population was unhappy. Having structures stepped on seems to a recurring issue, I know it is late in the development cycle but I am of the opinion that a code review to insert hash values and checking them on a turn by turn or even function call by function call basis might help localize their occurrance.
Additionally, one of the report windows mentioned that 4 gaziliion percent of the population was unhappy. Having structures stepped on seems to a recurring issue, I know it is late in the development cycle but I am of the opinion that a code review to insert hash values and checking them on a turn by turn or even function call by function call basis might help localize their occurrance.