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

Comparing deliantra/server/random_maps/standalone.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:03 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * static char *rcsid_standalone_c = 2 * static char *rcsid_standalone_c =
3 * "$Id: standalone.C,v 1.1 2006/08/13 17:16:03 elmex Exp $"; 3 * "$Id: standalone.C,v 1.2 2006/08/29 08:01:36 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
88 case SHOP_FLOOR: 88 case SHOP_FLOOR:
89 if (!HAS_RANDOM_ITEMS(op)) return 0; 89 if (!HAS_RANDOM_ITEMS(op)) return 0;
90 do { 90 do {
91 i=10; /* let's give it 10 tries */ 91 i=10; /* let's give it 10 tries */
92 while((tmp=generate_treasure(op->randomitems,op->stats.exp? 92 while((tmp=generate_treasure(op->randomitems,op->stats.exp?
93 op->stats.exp:5))==NULL&&--i); 93 op->stats.exp:5))==NULL&&--i);
94 if(tmp==NULL) 94 if(tmp==NULL)
95 return 0; 95 return 0;
96 if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED)) 96 if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED))
97 { 97 {
98 free_object(tmp); 98 free_object(tmp);
99 tmp = NULL; 99 tmp = NULL;
100 } 100 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines