--- deliantra/server/common/object.C 2007/01/24 22:42:48 1.122 +++ deliantra/server/common/object.C 2007/01/27 02:19:36 1.124 @@ -903,7 +903,6 @@ * object will have no environment. If the object previously had an * environment, the x and y coordinates will be updated to * the previous environment. - * Beware: This function is called from the editor as well! */ void object::remove_slow () @@ -1970,7 +1969,7 @@ if (!index) return -1; - return altern[RANDOM () % index]; + return altern [rndm (index)]; } /* @@ -2001,7 +2000,7 @@ end -= begin; while (--end) - swap (arr [end], arr [RANDOM () % (end + 1)]); + swap (arr [end], arr [rndm (end + 1)]); } /* new function to make monster searching more efficient, and effective!