]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/gamemgr.lua
Textureable sun and moon.
[dragonfireclient.git] / builtin / gamemgr.lua
index 8409bff0335ced4e9f03a668b623d7c29918c96e..c99c2de21ab8e787cbd143e57d0065cb4991c832 100644 (file)
@@ -31,7 +31,7 @@ end
 --------------------------------------------------------------------------------
 function gamemgr.handle_games_buttons(fields)
        if fields["gamelist"] ~= nil then
-               local event = explode_textlist_event(fields["gamelist"])
+               local event = engine.explode_textlist_event(fields["gamelist"])
                gamemgr.selected_game = event.index
        end
        
@@ -225,7 +225,8 @@ function gamemgr.tab()
                if current_game.menuicon_path ~= nil and
                        current_game.menuicon_path ~= "" then
                        retval = retval .. 
-                               "image[5.8,-0.25;2,2;" .. current_game.menuicon_path .. "]"
+                               "image[5.8,-0.25;2,2;" ..
+                               engine.formspec_escape(current_game.menuicon_path) .. "]"
                end
                
                retval = retval ..
@@ -251,7 +252,8 @@ function gamemgr.dialog_edit_game()
                if current_game.menuicon_path ~= nil and
                        current_game.menuicon_path ~= "" then
                        retval = retval .. 
-                               "image[5.25,0;2,2;" .. current_game.menuicon_path .. "]"                        
+                               "image[5.25,0;2,2;" ..
+                               engine.formspec_escape(current_game.menuicon_path) .. "]"
                end
                
                retval = retval ..