X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fio%2FWorldSave.cpp;h=86532787653d1b24deef8baec749501eab3377ff;hb=33b37e7242e4cbfa76e4a0d6e5bb54223b541162;hp=6414dd0a7be43129f2840562454ead38ae12bc79;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/io/WorldSave.cpp b/src/io/WorldSave.cpp index 6414dd0..8653278 100644 --- a/src/io/WorldSave.cpp +++ b/src/io/WorldSave.cpp @@ -130,6 +130,10 @@ void WorldSave::Read(Player &player) const { in.ReadVec(state.block_pos); } else if (name == "orientation") { in.ReadQuat(state.orient); + } else if (name == "pitch") { + state.pitch = in.GetFloat(); + } else if (name == "yaw") { + state.yaw = in.GetFloat(); } else if (name == "slot") { int slot; in.ReadNumber(slot); @@ -151,6 +155,8 @@ void WorldSave::Write(const Player &player) const { out << "chunk = " << state.chunk_pos << ';' << endl; out << "position = " << state.block_pos << ';' << endl; out << "orientation = " << state.orient << ';' << endl; + out << "pitch = " << state.pitch << ';' << endl; + out << "yaw = " << state.yaw << ';' << endl; out << "slot = " << player.GetInventorySlot() << ';' << endl; }