Makes GameView returning reference on camera

This commit is contained in:
Vladislav Belov
2026-06-28 17:57:16 +02:00
parent 0cc07aa209
commit e0d131854d
24 changed files with 105 additions and 104 deletions
@@ -196,7 +196,7 @@ entity_id_t GetFollowedEntity()
CFixedVector3D GetTerrainAtScreenPoint(int x, int y)
{
CVector3D pos = g_Game->GetView()->GetCamera()->GetWorldCoordinates(x, y, true);
CVector3D pos = g_Game->GetView()->GetCamera().GetWorldCoordinates(x, y, true);
return CFixedVector3D(fixed::FromFloat(pos.X), fixed::FromFloat(pos.Y), fixed::FromFloat(pos.Z));
}