Re: Negative Money [message #351924 is a reply to message #351848] |
Tue, 23 September 2008 22:33 |
|
Craziac
Messages: 157 Registered: September 2007
Karma:
|
Recruit |
|
|
insert_name_here wrote on Tue, 23 September 2008 08:44 | IF X < Y
Then X = 0
ELSE
X = X - Y
Well...wouldn't it be as simple as something like that?
|
Well..
if (money < cost) { return 2; } // Insufficient Funds
else { return 0; } // Allow
But yes, that's exactly the problem. Westwood didn't think we'd ever have negative money. But I still have to find the location that rejects it. Haven't so far!
[Updated on: Tue, 23 September 2008 22:34] Report message to a moderator
|
|
|