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.43 by root, Mon Oct 12 14:00:57 2009 UTC vs.
Revision 1.44 by root, Thu Nov 5 15:43:21 2009 UTC

64 64
65 attachable::do_destroy (); 65 attachable::do_destroy ();
66 66
67 refcnt_dec (); 67 refcnt_dec ();
68} 68}
69
70//+GPL
69 71
70/* 72/*
71 * returns 1 if the player is in the region reg, or a child region thereof 73 * returns 1 if the player is in the region reg, or a child region thereof
72 * otherwise returns 0 74 * otherwise returns 0
73 * if passed a NULL region returns -1 75 * if passed a NULL region returns -1
124 LOG (llevError, "No suitable jailmap for region %s was found.\n", &reg->name); 126 LOG (llevError, "No suitable jailmap for region %s was found.\n", &reg->name);
125 127
126 return 0; 128 return 0;
127} 129}
128 130
131//-GPL
132
129region * 133region *
130region::read (object_thawer &f) 134region::read (object_thawer &f)
131{ 135{
132 assert (f.kw == KW_region); 136 assert (f.kw == KW_region);
133 137
191 195
192 f.next (); 196 f.next ();
193 } 197 }
194} 198}
195 199
196/*
197 * First initialises the archtype hash-table (init_archetable()).
198 * Reads and parses the archetype file (with the first and second-pass
199 * functions).
200 */
201void 200void
202init_regions (void) 201init_regions (void)
203{ 202{
204 if (!regions.size ()) 203 if (!regions.size ())
205 { 204 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines