Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Negative Money
Re: Negative Money [message #351924 is a reply to message #351848] Tue, 23 September 2008 22:33 Go to previous messageGo to previous message
Craziac is currently offline  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!


http://demonshall.net/Stewie/images/OblivStewieSig.jpg

[Updated on: Tue, 23 September 2008 22:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Please fix Glacier Flying
Next Topic: Dual screen
Goto Forum:
  


Current Time: Fri Dec 27 05:34:22 MST 2024

Total time taken to generate the page: 0.00999 seconds