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.25 by root, Fri Jan 19 22:24:10 2007 UTC

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