From ebf515f8c76ca32d2fd5fe9b70783987af5c12ca Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Tue, 25 Aug 2015 20:18:06 -0500 Subject: [PATCH] - Fixed unneeded dual call to SetOrigin. --- src/p_things.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/p_things.cpp b/src/p_things.cpp index f9d85c43fc..b7e3f058b8 100644 --- a/src/p_things.cpp +++ b/src/p_things.cpp @@ -718,19 +718,13 @@ int P_Thing_Warp(AActor *caller, AActor *reference, fixed_t xofs, fixed_t yofs, if (flags & WARPF_TOFLOOR) { // set correct xy - - caller->SetOrigin( - reference->x + xofs, - reference->y + yofs, - reference->z); - // now the caller's floorz should be appropriate for the assigned xy-position // assigning position again with. // extra unlink, link and environment calculation caller->SetOrigin( - caller->x, - caller->y, - caller->floorz + zofs); + reference->x + xofs, + reference->y + yofs, + reference->floorz + zofs); } else {