View Single Post
  #16  
Old June 26th, 2003, 08:21 PM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default Re: Armor Regeneration Question

Sounds like the string parser that read the text files properly interprets the negative numbers, and stores them in an appropriate twos-complement format. Then the game takes the twos-complement negative number, and treats it like an unsigned integer. Negative one would become 65,535.

Of course, anyone reading this who understands the term "two-complement" also already knew what was happening and had no need for my explanation. Sorry.
Reply With Quote