From dd27ea8f01c4096ce20cb692248243ee8b0e4fd1 Mon Sep 17 00:00:00 2001 From: Patrick <14859495+Patrick2562@users.noreply.github.com> Date: Fri, 13 Aug 2021 11:39:25 +0200 Subject: [PATCH] don't change interior if already in the same one --- Client/mods/deathmatch/logic/CClientEntity.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Client/mods/deathmatch/logic/CClientEntity.cpp b/Client/mods/deathmatch/logic/CClientEntity.cpp index 61be4ca269..7e7540e1fe 100644 --- a/Client/mods/deathmatch/logic/CClientEntity.cpp +++ b/Client/mods/deathmatch/logic/CClientEntity.cpp @@ -1298,6 +1298,9 @@ unsigned char CClientEntity::GetInterior() void CClientEntity::SetInterior(unsigned char ucInterior) { + if (m_ucInterior == ucInterior) + return; + CEntity* pEntity = GetGameEntity(); if (pEntity) {