Skip to content

Commit 0950b4c

Browse files
committed
fix mt 5.4 rendering bug
1 parent aafa4e5 commit 0950b4c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mods/sm_game/init.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ minetest.register_globalstep(function(dtime)
487487
cache_player:set_animation(model_animations["stand"], 40, 0)
488488
elseif gamestate == "menu" then
489489
cache_player:set_look_horizontal(0)
490-
cache_player:set_look_vertical(0)
490+
cache_player:set_look_vertical(-math.pi/2)
491491
elseif gamestate == "game_loading" then
492492
local time = os.time()
493493
local gametime = infos.init_gametime
@@ -535,9 +535,6 @@ minetest.register_globalstep(function(dtime)
535535
elseif ctime == 4 then
536536
cache_player:hud_change(data.hud_ids.title, "text", "")
537537
cache_player:hud_change(data.hud_ids.title_bg, "text", "blank.png")
538-
--cache_player:set_look_vertical(math.pi*2)
539-
--cache_player:set_look_horizontal(math.pi)
540-
--cache_player:set_look_horizontal(math.pi)
541538
local sh = infos.music_handler
542539
sm_game.set_state("game", {init_gametime = os.time(), music_handler = sh})
543540
end

0 commit comments

Comments
 (0)