mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
dasdasdasdas
This commit is contained in:
parent
95c713bc4d
commit
4d281ff03b
8 changed files with 64 additions and 77 deletions
|
|
@ -454,8 +454,8 @@ void WorldFiles::writePlayer(Player* player){
|
|||
posarr.put(position.z);
|
||||
|
||||
json::JArray& rotarr = root.putArray("rotation");
|
||||
rotarr.put(player->camX);
|
||||
rotarr.put(player->camY);
|
||||
rotarr.put(player->cam.x);
|
||||
rotarr.put(player->cam.y);
|
||||
|
||||
root.put("flight", player->flight);
|
||||
root.put("noclip", player->noclip);
|
||||
|
|
@ -479,8 +479,8 @@ bool WorldFiles::readPlayer(Player* player) {
|
|||
player->camera->position = position;
|
||||
|
||||
json::JArray* rotarr = root->arr("rotation");
|
||||
player->camX = rotarr->num(0);
|
||||
player->camY = rotarr->num(1);
|
||||
player->cam.x = rotarr->num(0);
|
||||
player->cam.y = rotarr->num(1);
|
||||
|
||||
root->flag("flight", player->flight);
|
||||
root->flag("noclip", player->noclip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue