Fixes when getting on some transports the npcs around you would disappear, and sometimes you would die from fall damage.

This commit is contained in:
hondacrx
2022-08-01 17:46:11 -04:00
parent cb75c49214
commit 4fea5e1b1e
2 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -216,8 +216,8 @@ namespace Game.Entities
}
public float GetExactDist2dSq(Position pos)
{
float dx = posX - pos.posX;
float dy = posY - pos.posY;
float dx = pos.posX - posX;
float dy = pos.posY - posY;
return dx * dx + dy * dy;
}