--- deliantra/server/random_maps/decor.C 2007/01/27 00:56:48 1.12 +++ deliantra/server/random_maps/decor.C 2007/01/27 02:19:37 1.13 @@ -58,7 +58,7 @@ /* pick a random option, only 1 option right now. */ if (decor_option == 0) - decor_option = RANDOM () % NR_DECOR_OPTIONS + 1; + decor_option = rndm (NR_DECOR_OPTIONS) + 1; switch (decor_option) { @@ -66,7 +66,7 @@ break; case 1: { /* random placement of decor objects. */ - int number_to_place = RANDOM () % ((RP->Xsize * RP->Ysize) / 5); + int number_to_place = rndm (RP->Xsize * RP->Ysize / 5); int failures = 0; object *new_decor_object; @@ -74,8 +74,8 @@ { int x, y; - x = RANDOM () % (RP->Xsize - 2) + 1; - y = RANDOM () % (RP->Ysize - 2) + 1; + x = rndm (RP->Xsize - 2) + 1; + y = rndm (RP->Ysize - 2) + 1; if (maze[x][y] == 0 && obj_count_in_map (map, x, y) < 2) { /* empty */ object *this_object;