ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.C
(Generate patch)

Comparing deliantra/server/random_maps/random_map.C (file contents):
Revision 1.24 by root, Fri Jan 19 21:49:58 2007 UTC vs.
Revision 1.26 by root, Thu Jan 25 03:54:45 2007 UTC

156 156
157 /* allocate the map and set the floor */ 157 /* allocate the map and set the floor */
158 make_map_floor (layout, RP->floorstyle, RP); 158 make_map_floor (layout, RP->floorstyle, RP);
159 159
160 /* set region */ 160 /* set region */
161 region = RP->region; 161 default_region = RP->region;
162 162
163 CEDE; 163 CEDE;
164 164
165 /* create walls unless the wallstyle is "none" */ 165 /* create walls unless the wallstyle is "none" */
166 if (strcmp (RP->wallstyle, "none")) 166 if (strcmp (RP->wallstyle, "none"))
795 strcat (buf, small_buf); 795 strcat (buf, small_buf);
796 } 796 }
797 797
798 if (RP->random_seed) 798 if (RP->random_seed)
799 { 799 {
800 sprintf (small_buf, "random_seed %d\n", RP->random_seed); 800 sprintf (small_buf, "random_seed %u\n", RP->random_seed);
801 strcat (buf, small_buf); 801 strcat (buf, small_buf);
802 } 802 }
803 803
804 if (RP->custom) 804 if (RP->custom)
805 { 805 {
831 int dungeon_level_n, 831 int dungeon_level_n,
832 int difficulty_n, 832 int difficulty_n,
833 int difficulty_given_n, 833 int difficulty_given_n,
834 int decoroptions_n, 834 int decoroptions_n,
835 int orientation_n, 835 int orientation_n,
836 int origin_x_n, int origin_y_n, int random_seed_n, int treasureoptions_n, float difficulty_increase) 836 int origin_x_n, int origin_y_n, uint32_t random_seed_n, int treasureoptions_n, float difficulty_increase)
837{ 837{
838 char small_buf[16384]; 838 char small_buf[16384];
839 839
840 sprintf (buf, "xsize %d\nysize %d\n", xsize_n, ysize_n); 840 sprintf (buf, "xsize %d\nysize %d\n", xsize_n, ysize_n);
841 841
977 } 977 }
978 978
979 if (random_seed_n) 979 if (random_seed_n)
980 { 980 {
981 /* Add one so that the next map is a bit different */ 981 /* Add one so that the next map is a bit different */
982 sprintf (small_buf, "random_seed %d\n", random_seed_n + 1); 982 sprintf (small_buf, "random_seed %u\n", random_seed_n + 1);
983 strcat (buf, small_buf); 983 strcat (buf, small_buf);
984 } 984 }
985 985
986 if (treasureoptions_n) 986 if (treasureoptions_n)
987 { 987 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines