View Single Post
  #8  
Old 03-30-2002, 04:01 PM
theCoder
Sarnak
 
Join Date: Jan 2002
Posts: 90
Default

(Maybe this should be in the dev forum, but oh, well)

mobs have the ability to have up to 8 billion hp.

8 billion requires 33 bits. Are you sure you don't mean 2 billion? In zone/mob.h, all the hp fields are declared as sint32, which is declared as a signed int in common/types.h. The maximum size for a signed int is 2^31-1 = 2,147,483,647 (the final bit is for the sign). But I haven't looked at all the code, so I could be wrong...
Reply With Quote