Skip to content

Commit 7bfce08

Browse files
committed
Remove redundant check
1 parent ae4a3f2 commit 7bfce08

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎Game.Shared/GarrysMod/SENT_Anim.cs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,9 @@ public override void ClientThink() {
263263
IPhysicsObject? physics = VPhysicsGetObject();
264264
if (physics == null)
265265
return;
266-
if (physics.GetShadowController() != null) {
266+
if (physics.GetShadowController() != null)
267267
physics.UpdateShadow(origin, GetNetworkAngles(), false, 0);
268-
return;
269-
}
270-
if (physics.GetShadowController() == null)
268+
else
271269
physics.SetPosition(origin, GetNetworkAngles(), true);
272270
}
273271
}

0 commit comments

Comments
 (0)