Skip to content

Commit

Permalink
Fixed bug #2638582: "HeXen Korax bug and crash".
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Feb 26, 2009
1 parent e3de3b7 commit 455c0c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doomsday/plugins/jhexen/src/p_enemy.c
Expand Up @@ -4333,8 +4333,7 @@ void C_DECL A_KoraxChase(mobj_t* actor)
if((!actor->special2) &&
(actor->health <= (actor->info->spawnHealth / 2)))
{
lastfound = 0;
spot = P_FindMobjFromTID(KORAX_FIRST_TELEPORT_TID, &lastfound);
spot = P_FindMobjFromTID(KORAX_FIRST_TELEPORT_TID, &actor->special1);
if(spot)
{
P_Teleport(actor, spot->pos[VX], spot->pos[VY], spot->angle, true);
Expand Down Expand Up @@ -4363,8 +4362,7 @@ void C_DECL A_KoraxChase(mobj_t* actor)
{
if(P_Random() < 10)
{
lastfound = actor->special1;
spot = P_FindMobjFromTID(KORAX_TELEPORT_TID, &lastfound);
spot = P_FindMobjFromTID(KORAX_TELEPORT_TID, &actor->special1);
actor->tracer = spot;
if(spot)
{
Expand Down

0 comments on commit 455c0c4

Please sign in to comment.