mirror of
https://github.com/Relintai/godot-lportal.git
synced 2025-05-01 15:47:55 +02:00
bug fix in dob_update room detection
This commit is contained in:
parent
533c40baa6
commit
b6c6f15e17
@ -109,6 +109,9 @@ LRoom * LRoom::DOB_Update(LRoomManager &manager, Spatial * pDOB)
|
|||||||
if (iRoomNum == -1)
|
if (iRoomNum == -1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
// could be no change of room...
|
||||||
|
if (iRoomNum == m_RoomID)
|
||||||
|
return 0;
|
||||||
|
|
||||||
return manager.GetRoom(iRoomNum);
|
return manager.GetRoom(iRoomNum);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user