aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJürgen Doser <jurgen.doser@gmail.com>2012-11-28 18:39:58 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-11-30 22:07:30 +0200
commitc1d8eeb70a63a73739a38e652a2b5462e08588ca (patch)
tree37452a6d8053e1662d91f5389d23ca5bd30ee9ce /src/game.cpp
parent6cf87e1d23d829cc0d5c07160e8135ff5887d90d (diff)
downloadminetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.tar.gz
minetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.tar.bz2
minetest-c1d8eeb70a63a73739a38e652a2b5462e08588ca.zip
Make dragged itemstack following the mouse cursor much smoother
by using the cursor coordinates directly, instead of updating them only when a mouse event is seen.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 5ce214cb8..edc3ce741 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1513,7 +1513,7 @@ void the_game(
<<"Launching inventory"<<std::endl;
GUIFormSpecMenu *menu =
- new GUIFormSpecMenu(guienv, guiroot, -1,
+ new GUIFormSpecMenu(device, guiroot, -1,
&g_menumgr,
&client, gamedef);
@@ -2296,7 +2296,7 @@ void the_game(
/* Create menu */
GUIFormSpecMenu *menu =
- new GUIFormSpecMenu(guienv, guiroot, -1,
+ new GUIFormSpecMenu(device, guiroot, -1,
&g_menumgr,
&client, gamedef);
menu->setFormSpec(meta->getString("formspec"),