Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to fix golem bug.
jt1o+@andrew.cmu.edu wrote:
> ! for (tmp = get_map_ob(op->map, op->x+freearr_x[op->direction],
> ! op->y+freearr_y[op->direction]);
> ! tmp != NULL; tmp = tmp->above)
> ! if(IS_ALIVE(tmp))
> ! attack_ob(op,tmp);
You should check that tmp->stats.dam != 0 before calling attack_ob(op,tmp).
In other words:
if(IS_ALIVE(tmp) && tmp->stats.dam)
The alive-flag is set in objects that are "hit-able", not neccesarily "alive"
objects.
Not that this was serious, all it means is that doors would hit back when golems
try to break through them 8)
-Frank.