From 981afe2831b80e61753bf69ab044847ad76cb50c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 15 Feb 2007 00:04:03 +0000 Subject: [PATCH] - Added a voodoo doll check around the PlayIdle() call in EV_Teleport(). SVN r486 (trunk) --- src/p_teleport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_teleport.cpp b/src/p_teleport.cpp index a808cfb1c..1995e58fa 100644 --- a/src/p_teleport.cpp +++ b/src/p_teleport.cpp @@ -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 (); }