From b318e82356c185b54ef4cd404704422ea24fa277 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 10 Aug 2011 08:06:30 +0200 Subject: Refactor player's eye position coding Collect the player's eye position coding in a Player method, and use it in client to pass the eye position information to the game. --- src/client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 0150b687e..1c71b2c2c 100644 --- a/src/client.h +++ b/src/client.h @@ -206,7 +206,9 @@ public: // Wrapper to Map NodeMetadata* getNodeMetadata(v3s16 p); - v3f getPlayerPosition(); + // Get the player position, and optionally put the + // eye position in *eye_position + v3f getPlayerPosition(v3f *eye_position=NULL); void setPlayerControl(PlayerControl &control); -- cgit v1.2.3