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.9 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.10 by root, Wed Dec 13 02:55:50 2006 UTC

288 */ 288 */
289 289
290region * 290region *
291get_region_struct (void) 291get_region_struct (void)
292{ 292{
293
294 region *reg;
295
296 reg = (region *) CALLOC (1, sizeof (region));
297 if (reg == NULL)
298 fatal (OUT_OF_MEMORY);
299
300 memset (reg, '\0', sizeof (region));
301
302 return reg; 293 return new region;
303} 294}
304 295
305/* 296/*
306 * Reads/parses the region file, and copies into a linked list 297 * Reads/parses the region file, and copies into a linked list
307 * of region structs. 298 * of region structs.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines