Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in player.c




the resurrection code is buggy.
The line which causes the crash is :
    tmp->x=x;tmp->y=y;

However, this line is NOT incorrect.
What IS incorrect is that a modfication which
set x and y to the correct values didn't make
it into the new version.

The problem was this:  x and y were uninitialized when they were used.
x and y were intended to hold the location of the character
BEFORE he got killed, as was "map".  If these aren't saved,
the gravestone always appears in "emergency_x", "emergency_y".

the assignment which set x and y and map properly is nonexistent
in 90.2

NOT good.

There are other mistakes which will cause bizarre behavior.
I'll fix this and mail
a replacement RSN.

PeterM