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

Comparing deliantra/server/common/region.C (file contents):
Revision 1.27 by root, Sat Apr 14 07:22:59 2007 UTC vs.
Revision 1.29 by root, Tue Apr 17 18:24:30 2007 UTC

205 case KW_jail_y: f.get (rgn->jaily); break; 205 case KW_jail_y: f.get (rgn->jaily); break;
206 case KW_fallback: f.get (rgn->fallback); break; 206 case KW_fallback: f.get (rgn->fallback); break;
207 case KW_msg: f.get_ml (KW_endmsg, rgn->msg); break; 207 case KW_msg: f.get_ml (KW_endmsg, rgn->msg); break;
208 208
209 case KW_end: 209 case KW_end:
210 f.next ();
211
210 for_all_regions (old) 212 for_all_regions (old)
211 if (old->name == rgn->name) 213 if (old->name == rgn->name)
212 { 214 {
213 // replace, copy new values (ugly) 215 // replace, copy new values (ugly)
214 rgn->index = old->index; 216 rgn->index = old->index;
237 239
238/* 240/*
239 * First initialises the archtype hash-table (init_archetable()). 241 * First initialises the archtype hash-table (init_archetable()).
240 * Reads and parses the archetype file (with the first and second-pass 242 * Reads and parses the archetype file (with the first and second-pass
241 * functions). 243 * functions).
242 * Then initialises treasures by calling load_treasures().
243 */ 244 */
244void 245void
245init_regions (void) 246init_regions (void)
246{ 247{
247 if (!regions.size ()) 248 if (!regions.size ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines