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

Comparing deliantra/server/random_maps/decor.C (file contents):
Revision 1.11 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.12 by root, Sat Jan 27 00:56:48 2007 UTC

51 char style_name[1024]; 51 char style_name[1024];
52 52
53 sprintf (style_name, "/styles/decorstyles"); 53 sprintf (style_name, "/styles/decorstyles");
54 54
55 decor_map = find_style (style_name, decorstyle, -1); 55 decor_map = find_style (style_name, decorstyle, -1);
56 if (decor_map == NULL) 56 if (!decor_map)
57 return; 57 return;
58
58 /* pick a random option, only 1 option right now. */ 59 /* pick a random option, only 1 option right now. */
59 if (decor_option == 0) 60 if (decor_option == 0)
60 decor_option = RANDOM () % NR_DECOR_OPTIONS + 1; 61 decor_option = RANDOM () % NR_DECOR_OPTIONS + 1;
62
61 switch (decor_option) 63 switch (decor_option)
62 { 64 {
63 case 0: 65 case 0:
64 break; 66 break;
65 case 1: 67 case 1:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines