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.6 by root, Thu Sep 14 22:34:00 2006 UTC vs.
Revision 1.7 by root, Sat Sep 16 22:24:12 2006 UTC

60 return NULL; 60 return NULL;
61} 61}
62 62
63/* This might need optimising at some point. */ 63/* This might need optimising at some point. */
64region * 64region *
65get_region_by_map (mapstruct *m) 65get_region_by_map (maptile *m)
66{ 66{
67 return get_region_by_name (get_name_of_region_for_map (m)); 67 return get_region_by_name (get_name_of_region_for_map (m));
68} 68}
69 69
70/* 70/*
72 * explicit check that it is, this is much nicer here than scattered throughout 72 * explicit check that it is, this is much nicer here than scattered throughout
73 * the map code. 73 * the map code.
74 */ 74 */
75 75
76const char * 76const char *
77get_name_of_region_for_map (const mapstruct *m) 77get_name_of_region_for_map (const maptile *m)
78{ 78{
79 region *reg; 79 region *reg;
80 80
81 if (m->region != NULL) 81 if (m->region != NULL)
82 return m->region->name; 82 return m->region->name;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines