Skip to content

Commit aafa4e5

Browse files
committed
fix player initial pitch and yaw
1 parent 2258efd commit aafa4e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mods/sm_game/init.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,16 +486,16 @@ minetest.register_globalstep(function(dtime)
486486
end
487487
cache_player:set_animation(model_animations["stand"], 40, 0)
488488
elseif gamestate == "menu" then
489-
cache_player:set_look_horizontal(math.pi*3/2)
490-
cache_player:set_look_vertical(math.pi*3/2)
489+
cache_player:set_look_horizontal(0)
490+
cache_player:set_look_vertical(0)
491491
elseif gamestate == "game_loading" then
492492
local time = os.time()
493493
local gametime = infos.init_gametime
494494
local ctime = time - gametime
495495

496496
if not infos.is_sound then
497-
cache_player:set_look_horizontal(math.pi*3/2)
498-
cache_player:set_look_vertical(math.pi*3/2)
497+
cache_player:set_look_horizontal(0)
498+
cache_player:set_look_vertical(0)
499499
if settings.music and not infos.music_handler then
500500
infos.music_handler = minetest.sound_play({
501501
name = "sm_game_game_music"

0 commit comments

Comments
 (0)