Crashfix: se un giocatore si disconnetteva con la HUD centrale ancora visibile, crashava
parent
d78925c5d8
commit
a6b93fe79b
|
@ -38,6 +38,9 @@ function quake.HUD_broadcast_player(p_name, msg, duration)
|
|||
player:hud_change(HUD_ID, "text", msg)
|
||||
|
||||
minetest.after(duration, function()
|
||||
|
||||
if not minetest.get_player_by_name(p_name) then return end -- potrebbe essersi disconnesso
|
||||
|
||||
local current_message = player:hud_get(HUD_ID).text
|
||||
if msg == current_message then
|
||||
player:hud_change(HUD_ID, "text", "")
|
||||
|
|
Loading…
Reference in New Issue