Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Fix Credits
Re: Fix Credits [message #403261 is a reply to message #403239] Sat, 19 September 2009 09:09 Go to previous messageGo to previous message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma:
General (3 Stars)

Jerad Gray wrote on Sat, 19 September 2009 09:26

Yeah its a float, sorry for saying int, and dang I keep forgetting to see if I can replicate it, I'll try tonight.

Okay, it doesn't seem to flip negative until it exceeds 9 digits, so it doesn't like 1,000,000,000 and more, so I have no clue why I was seeing the error of it flipping negative so soon, and adding numbers like 0.1 too it works perfectly fine too, so it might have been like what StealthEye said and maybe the server I was on did some bad division or something. Furthermore, I was happy to see that Ren doesn't round up, as rounding up the display and not the actual value would make it impossible to buy things (IE says 400 at the bottom of the screen but you really have 399.9).


Which is why using an int and div instead of floating divide would be faster...

Forgot points are also floating, could just take the integer part of them, though.



Renguard is a wonderful initiative
Toggle Spoiler

[Updated on: Sat, 19 September 2009 09:10]

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
Previous Topic: Other graphical enhancements?
Next Topic: Player names that start with /
Goto Forum:
  


Current Time: Thu Jan 09 12:23:13 MST 2025

Total time taken to generate the page: 0.00882 seconds