aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorsofar <sofar@foo-projects.org>2023-02-25 16:08:33 -0800
committerGitHub <noreply@github.com>2023-02-26 01:08:33 +0100
commit2083252c05ece1e47c1c476fda2b9eda3bf332a0 (patch)
tree3af58a210bad99834110e4aff820ce04ee839b2b /src/client/game.cpp
parent6e1c70e02b00df94a584bb4247cfa4f4c616c8d5 (diff)
downloadminetest-2083252c05ece1e47c1c476fda2b9eda3bf332a0.tar.xz
Sky: transmit body_orbit_tilt to client. (#13193)
This obsoletes the current client-side setting entirely. The server can transmit the tilt to the client directly and will send 0.0f as default value. Co-authored-by: x2048 <codeforsmile@gmail.com> Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 833093673..cd0e67b42 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -2976,6 +2976,9 @@ void Game::handleClientEvent_SetSky(ClientEvent *event, CameraOrientation *cam)
);
}
+ // Orbit Tilt:
+ sky->setBodyOrbitTilt(event->set_sky->body_orbit_tilt);
+
delete event->set_sky;
}