From aafa4e523ad6f2df422087c38359ec9d517834f7 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Tue, 21 Dec 2021 21:18:16 +0100 Subject: [PATCH] fix player initial pitch and yaw --- mods/sm_game/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/sm_game/init.lua b/mods/sm_game/init.lua index b320090..d0822d4 100644 --- a/mods/sm_game/init.lua +++ b/mods/sm_game/init.lua @@ -486,16 +486,16 @@ minetest.register_globalstep(function(dtime) end cache_player:set_animation(model_animations["stand"], 40, 0) elseif gamestate == "menu" then - cache_player:set_look_horizontal(math.pi*3/2) - cache_player:set_look_vertical(math.pi*3/2) + cache_player:set_look_horizontal(0) + cache_player:set_look_vertical(0) elseif gamestate == "game_loading" then local time = os.time() local gametime = infos.init_gametime local ctime = time - gametime if not infos.is_sound then - cache_player:set_look_horizontal(math.pi*3/2) - cache_player:set_look_vertical(math.pi*3/2) + cache_player:set_look_horizontal(0) + cache_player:set_look_vertical(0) if settings.music and not infos.music_handler then infos.music_handler = minetest.sound_play({ name = "sm_game_game_music"