projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d53a6cd
)
Fix bug in moving a larger sized stack in inventory on top of another
author
Perttu Ahola
<celeron55@gmail.com>
Sun, 2 Sep 2012 17:13:11 +0000
(20:13 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 2 Sep 2012 17:24:45 +0000
(20:24 +0300)
- You have 2 stacks: a with x items and b with y<x items
- Take a with your mouse and place it on b
- Whole stack a moves to b
- (y * 2 - x) items move from b to a
- (x - y) items are left to the mouse cursor
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 760d67f9f8d9f9246d5506b23fc7438833b31998..41ec0f3da3033a0b2a8f2f0287c5614080866492 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-1057,7
+1057,7
@@
bool GUIFormSpecMenu::OnEvent(const SEvent& event)
if(leftover.count == stack_from.count)
{
// Swap the stacks
- m_selected_amount
-
= stack_to.count;
+ m_selected_amount = stack_to.count;
}
else if(leftover.empty())
{