Fix alpha for liquid nodes (#5494)
[oweals/minetest.git] / src / guiFormSpecMenu.h
index d70c3a5827be6ca1cd9f537da2d07a00cdc7cc27..18ccf1c3ad2b1f19562ca53a1defce5cd31cb4a6 100644 (file)
@@ -57,7 +57,7 @@ struct TextDest
 {
        virtual ~TextDest() {}
        // This is deprecated I guess? -celeron55
-       virtual void gotText(std::wstring text){}
+       virtual void gotText(const std::wstring &text) {}
        virtual void gotText(const StringMap &fields) = 0;
 
        std::string m_formname;
@@ -69,7 +69,7 @@ public:
        virtual ~IFormSource(){}
        virtual std::string getForm() = 0;
        // Fill in variables in field text
-       virtual std::string resolveText(std::string str){ return str; }
+       virtual std::string resolveText(const std::string &str) { return str; }
 };
 
 class GUIFormSpecMenu : public GUIModalMenu
@@ -421,7 +421,7 @@ protected:
        gui::IGUIStaticText *m_tooltip_element;
 
        u32 m_tooltip_show_delay;
-       s32 m_hovered_time;
+       s64 m_hovered_time;
        s32 m_old_tooltip_id;
        std::wstring m_old_tooltip;
 
@@ -527,7 +527,7 @@ private:
        struct clickpos
        {
                v2s32 pos;
-               s32 time;
+               s64 time;
        };
        clickpos m_doubleclickdetect[2];