Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to fix golem bug.
- To: crossfire (at) ifi.uio.no
- Subject: Re: Patch to fix golem bug.
- From: Frank Tore Johansen <frankj>
- Date: Wed, 16 Sep 1992 02:32:28 +0200
- In-Reply-To: <>; from "Moonchilde" at Sep 15, 92 8:15 pm
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.