Created
August 10, 2015 06:33
-
-
Save kahrl/4c3f9d0f75572a93c079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp | |
index f168306..62a8446 100644 | |
--- a/src/guiFormSpecMenu.cpp | |
+++ b/src/guiFormSpecMenu.cpp | |
@@ -1020,6 +1020,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data, | |
if (g_settings->getBool("freetype")) { | |
e = (gui::IGUIElement *) new gui::intlGUIEditBox(spec.fdefault.c_str(), | |
true, Environment, this, spec.fid, rect); | |
+ e->drop(); | |
} else { | |
#else | |
{ | |
@@ -1119,6 +1120,7 @@ void GUIFormSpecMenu::parseTextArea(parserData* data, | |
if (g_settings->getBool("freetype")) { | |
e = (gui::IGUIEditBox *) new gui::intlGUIEditBox(spec.fdefault.c_str(), | |
true, Environment, this, spec.fid, rect); | |
+ e->drop(); | |
} else { | |
#else | |
{ | |
diff --git a/src/minimap.cpp b/src/minimap.cpp | |
index 950202c..d1fb386 100644 | |
--- a/src/minimap.cpp | |
+++ b/src/minimap.cpp | |
@@ -224,12 +224,13 @@ Mapper::Mapper(IrrlichtDevice *device, Client *client) | |
// Initialize minimap data | |
data = new MinimapData; | |
- data->mode = MINIMAP_MODE_OFF; | |
- data->is_radar = false; | |
- data->map_invalidated = true; | |
- data->heightmap_image = NULL; | |
- data->minimap_image = NULL; | |
- data->texture = NULL; | |
+ data->mode = MINIMAP_MODE_OFF; | |
+ data->is_radar = false; | |
+ data->map_invalidated = true; | |
+ data->heightmap_image = NULL; | |
+ data->minimap_image = NULL; | |
+ data->texture = NULL; | |
+ data->heightmap_texture = NULL; | |
data->minimap_shape_round = g_settings->getBool("minimap_shape_round"); | |
// Get round minimap textures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment