Skip to content

Commit d3ef49a

Browse files
authored
Fix onClientElementInteriorChange is triggered even if the element already in the same interior (#2305)
1 parent 70272f9 commit d3ef49a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/CClientEntity.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,9 @@ unsigned char CClientEntity::GetInterior()
12981298

12991299
void CClientEntity::SetInterior(unsigned char ucInterior)
13001300
{
1301+
if (m_ucInterior == ucInterior)
1302+
return;
1303+
13011304
CEntity* pEntity = GetGameEntity();
13021305
if (pEntity)
13031306
{

0 commit comments

Comments
 (0)