--- deliantra/server/random_maps/rogue_layout.C 2006/12/31 19:02:24 1.4 +++ deliantra/server/random_maps/rogue_layout.C 2007/01/18 19:42:10 1.5 @@ -80,7 +80,7 @@ } /* decide on the number of rooms */ - nrooms = RANDOM () % 10 + 6; + nrooms = rndm (10) + 6; Rooms = (Room *) calloc (nrooms + 1, sizeof (Room)); /* actually place the rooms */ @@ -250,7 +250,7 @@ making_circle = 1; break; default: - making_circle = ((RANDOM () % 3 == 0) ? 1 : 0); + making_circle = ((rndm (3) == 0) ? 1 : 0); break; } @@ -289,7 +289,7 @@ int y2 = (walk - 1)->y; int in_wall = 0; - if (RANDOM () % 2) + if (rndm (2)) { /* connect in x direction first */ /* horizontal connect */ /* swap (x1,y1) (x2,y2) if necessary */