.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEIV

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:39 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.