Skip to content

Commit

Permalink
fix mt 5.4 rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AFCMS committed Dec 21, 2021
1 parent aafa4e5 commit 0950b4c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mods/sm_game/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ minetest.register_globalstep(function(dtime)
cache_player:set_animation(model_animations["stand"], 40, 0)
elseif gamestate == "menu" then
cache_player:set_look_horizontal(0)
cache_player:set_look_vertical(0)
cache_player:set_look_vertical(-math.pi/2)
elseif gamestate == "game_loading" then
local time = os.time()
local gametime = infos.init_gametime
Expand Down Expand Up @@ -535,9 +535,6 @@ minetest.register_globalstep(function(dtime)
elseif ctime == 4 then
cache_player:hud_change(data.hud_ids.title, "text", "")
cache_player:hud_change(data.hud_ids.title_bg, "text", "blank.png")
--cache_player:set_look_vertical(math.pi*2)
--cache_player:set_look_horizontal(math.pi)
--cache_player:set_look_horizontal(math.pi)
local sh = infos.music_handler
sm_game.set_state("game", {init_gametime = os.time(), music_handler = sh})
end
Expand Down

0 comments on commit 0950b4c

Please sign in to comment.