} else if (name == "orientation") {
in.ReadQuat(state.orient);
} else if (name == "pitch") {
} else if (name == "orientation") {
in.ReadQuat(state.orient);
} else if (name == "pitch") {
- out << "chunk = " << state.chunk_pos << ';' << endl;
- out << "position = " << state.block_pos << ';' << endl;
+ out << "chunk = " << state.pos.chunk << ';' << endl;
+ out << "position = " << state.pos.block << ';' << endl;
out << "orientation = " << state.orient << ';' << endl;
out << "pitch = " << state.pitch << ';' << endl;
out << "yaw = " << state.yaw << ';' << endl;
out << "orientation = " << state.orient << ';' << endl;
out << "pitch = " << state.pitch << ';' << endl;
out << "yaw = " << state.yaw << ';' << endl;
snprintf(chunk_buf.get(), chunk_bufsiz, chunk_path.c_str(), pos.x, pos.y, pos.z);
return chunk_buf.get();
}
snprintf(chunk_buf.get(), chunk_bufsiz, chunk_path.c_str(), pos.x, pos.y, pos.z);
return chunk_buf.get();
}