mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-10 03:56:56 +00:00
Makes GameView returning reference on camera
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user