… | |
… | |
84 | treasurelist::find (const char *name) |
84 | treasurelist::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 | { |