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 a96a4766d5
commit f1332fbc06

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;