--- deliantra/server/common/arch.C 2007/06/07 19:12:22 1.66 +++ deliantra/server/common/arch.C 2007/06/09 21:16:12 1.67 @@ -445,6 +445,14 @@ { archetype *at = *p; + // some flags get inherited formt he head (probably a lot more) + // doing it here doesn't feel too cozy, but it allows code + // to ignore head checks for these flags, which saves time + at->flag [FLAG_ALIVE] = new_head->flag [FLAG_ALIVE]; + at->flag [FLAG_NO_PICK] = new_head->flag [FLAG_NO_PICK]; + at->flag [FLAG_MONSTER] = new_head->flag [FLAG_MONSTER]; + at->flag [FLAG_IS_FLOOR] = new_head->flag [FLAG_IS_FLOOR]; + if (at->x < new_head->min_x) new_head->min_x = at->x; if (at->y < new_head->min_y) new_head->min_y = at->y; if (at->x > new_head->max_x) new_head->max_x = at->x;