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.25 by root, Thu Feb 15 21:07:48 2007 UTC vs.
Revision 1.26 by root, Fri Feb 16 19:43:41 2007 UTC

22 * The authors can be reached via e-mail at <crossfire@schmorp.de> 22 * The authors can be reached via e-mail at <crossfire@schmorp.de>
23 */ 23 */
24 24
25#include <global.h> 25#include <global.h>
26#include <unistd.h> 26#include <unistd.h>
27
28#include "loader.h"
29 27
30regionvec regions; 28regionvec regions;
31 29
32region * 30region *
33region::default_region () 31region::default_region ()
182 180
183 return 0; 181 return 0;
184} 182}
185 183
186region * 184region *
187region::load (object_f &f) 185region::read (object_thawer &f)
188{ 186{
187 assert (f.kw == KW_region);
188
189 region *rgn = new region; 189 region *rgn = new region;
190 f.get (rgn->name); 190 f.get (rgn->name);
191 f.next_kv (); 191 f.next ();
192 192
193 for (;;) 193 for (;;)
194 { 194 {
195 switch (f.kw) 195 switch (f.kw)
196 { 196 {
245 return 0; 245 return 0;
246 } 246 }
247 break; 247 break;
248 } 248 }
249 249
250 f.next_kv (); 250 f.next ();
251 } 251 }
252} 252}
253 253
254/* 254/*
255 * First initialises the archtype hash-table (init_archetable()). 255 * First initialises the archtype hash-table (init_archetable()).

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines