fix(NoClip): Improper cleanup of old entity

Causes unintended side effects
This commit is contained in:
Yimura 2021-10-14 00:09:56 +02:00
parent 5467abfa91
commit 12f4527de8
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -25,7 +25,7 @@ namespace big
// cleanup when changing entities
if (prev != ent)
{
ENTITY::FREEZE_ENTITY_POSITION(ent, false);
ENTITY::FREEZE_ENTITY_POSITION(prev, false);
ENTITY::SET_ENTITY_COLLISION(prev, true, true);
prev = ent;