diff options
Diffstat (limited to 'src/database/database-files.cpp')
-rw-r--r-- | src/database/database-files.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database-files.cpp b/src/database/database-files.cpp index 64eca394e..09d76240e 100644 --- a/src/database/database-files.cpp +++ b/src/database/database-files.cpp @@ -41,8 +41,8 @@ void PlayerDatabaseFiles::serialize(std::ostringstream &os, RemotePlayer *player sanity_check(player->getPlayerSAO()); args.setS32("hp", player->getPlayerSAO()->getHP()); args.setV3F("position", player->getPlayerSAO()->getBasePosition()); - args.setFloat("pitch", player->getPlayerSAO()->getPitch()); - args.setFloat("yaw", player->getPlayerSAO()->getYaw()); + args.setFloat("pitch", player->getPlayerSAO()->getLookPitch()); + args.setFloat("yaw", player->getPlayerSAO()->getRotation().Y); args.setS32("breath", player->getPlayerSAO()->getBreath()); std::string extended_attrs; |