--- deliantra/server/common/region.C 2008/05/06 16:55:25 1.39 +++ deliantra/server/common/region.C 2008/12/31 17:35:37 1.40 @@ -134,20 +134,19 @@ static int region_is_child_of_region (const region * child, const region * r) { - - if (r == NULL) + if (!r) return -1; - if (child == NULL) + if (!child) return 0; - if (!strcmp (child->name, r->name)) + if (child->name == r->name) return 1; - else if (child->parent != NULL) + if (child->parent) return region_is_child_of_region (child->parent, r); - else - return 0; + + return 0; } /** Returns an object which is an exit through which the player represented by op should be