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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.44 by root, Mon Apr 16 15:36:22 2007 UTC vs.
Revision 1.46 by root, Tue Apr 17 10:06:32 2007 UTC

84treasurelist::find (const char *name) 84treasurelist::find (const char *name)
85{ 85{
86 if (!name) 86 if (!name)
87 return 0; 87 return 0;
88 88
89 AUTODECL (i, tl_map.find (name)); 89 auto (i, tl_map.find (name));
90 90
91 if (i == tl_map.end ()) 91 if (i == tl_map.end ())
92 return 0; 92 return 0;
93 93
94 return i->second; 94 return i->second;
142 142
143 nroftreasures++; 143 nroftreasures++;
144 144
145 for (;;) 145 for (;;)
146 { 146 {
147 coroapi::cede_every (10); 147 coroapi::cede_to_tick_every (10);
148 148
149 f.next (); 149 f.next ();
150 150
151 switch (f.kw) 151 switch (f.kw)
152 { 152 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines