From 609fdae508acc32025204b0ddd6cd4ec0b5a5a13 Mon Sep 17 00:00:00 2001 From: Orangutanz Date: Tue, 9 Jan 2007 15:01:08 +0000 Subject: [PATCH] Fixed native get_user_origin mode 4 --- amxmodx/CMisc.h | 1 - amxmodx/meta_api.cpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/amxmodx/CMisc.h b/amxmodx/CMisc.h index 95e06983..9313cf58 100755 --- a/amxmodx/CMisc.h +++ b/amxmodx/CMisc.h @@ -120,7 +120,6 @@ public: cell hudmap[5]; Vector lastTrace; - Vector thisTrace; Vector lastHit; List queries; diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index 0eb3bbf5..ac304650 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -1217,8 +1217,7 @@ void C_TraceLine_Post(const float *v1, const float *v2, int fNoMonsters, edict_t if (ptr->pHit && (ptr->pHit->v.flags & (FL_CLIENT | FL_FAKECLIENT))) pPlayer->aiming = ptr->iHitgroup; - pPlayer->lastTrace = pPlayer->thisTrace; - pPlayer->thisTrace = ptr->vecEndPos; + pPlayer->lastTrace = ptr->vecEndPos; } RETURN_META(MRES_IGNORED);