Re: long vs. int

From: Carter T. Shock (ctso@umiacs.UMD.EDU)
Date: 09/20/95

> 	First, since the bitvectors start off at 0, if the maximum 
> bitvector 2^31 or 2^32 (21474883648 or 4294967296) that can be contained 

2^32, but declare it as unsigned long.

> 	Next, I've tried to change all the references to vnums and rnums 
> to long from int, so I can increase the total number of rooms/obj/mobs in 
> the game - this seems to have no effect, except when I change the line in 
> db.c if (nr >= 99999) return;  I made this much larger to reflect the 
> nature of long integers, but everytime I do this the MUD crashes upon 
> boot-up with the error message: Room %ld is outside of any zone (%ld = 
> virtual_nr) this is shortly after the if statement (++zone > 
> top_of_zone_table)  - anyway I can fix this?

did you change all of the #99999's at the end of the zone files
to the same value in db.c "if (nr >=..." If not, it reads the #99999
and thinks you're trying to describe the next room.


This archive was generated by hypermail 2b30 : 12/07/00 PST