View Single Post
  #3  
Old November 17th, 2007, 04:01 PM
capnq's Avatar

capnq capnq is offline
General
 
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
capnq is on a distinguished road
Default Re: Negative Damage?

I'm not certain, but that sounds like an integer overrun.

If an operation would put a variable past the upper boundary for its type, it will sometimes "wrap around" past the lower bound. For example, if the allowed range is -511 to +512, and the variable has been set to 520, it will display as -503. Or something like that.

However, it seems really odd that damage amounts would be typed to such a low upper bound, so I'm probably wrong.

Edit: SJ types faster than me, and explained it better to boot.
__________________
Cap'n Q

"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
Reply With Quote