I have converted my code to use long integer vnums, and up till now I
have had no problems with it. Today I was trying to change
get_random_room so that it actually gets a random room between the new
vnum range 1 - 2,147,483,647 and what I discovered is that the call to
number_range can't handle this. I changed the function declaration to
long arguments but it still hangs on this line:
for ( power = 2; power < to; power <<= 1 )
I will admit that I'm not the best coder in the world here and tell you
that I have no idea what the <<= 1 actually does in that line and I
suspect (since an ordinary for loop wouldn't hang like that with a long
integer) that it has something to do with the hang. I have looked high
and low to figure out what the operand is and can find nothing about it.
I would be very much appreciative if someone could help me with this
particular problem and perhaps explain the << operand to me.
Thanks so much,
Matt Bradbury