- Added a voodoo doll check around the PlayIdle() call in EV_Teleport().

SVN r486 (trunk)
This commit is contained in:
Randy Heit 2007-02-15 00:04:03 +00:00
parent ecc45d5d6e
commit 981afe2831

View file

@ -477,7 +477,7 @@ bool EV_Teleport (int tid, int tag, line_t *line, int side, AActor *thing, bool
thing->momx = FixedMul(momx, c) - FixedMul(momy, s);
thing->momy = FixedMul(momy, c) + FixedMul(momx, s);
}
if ((momx | momy) == 0 && thing->player != NULL)
if ((momx | momy) == 0 && thing->player != NULL && thing->player->mo == thing)
{
thing->player->mo->PlayIdle ();
}