projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
816ffa9
)
Fix calculation of selected item (for not drawing it) in formspec
author
Kahrl
<kahrl@gmx.net>
Mon, 17 Jun 2013 23:18:54 +0000
(
01:18
+0200)
committer
Kahrl
<kahrl@gmx.net>
Mon, 17 Jun 2013 23:18:54 +0000
(
01:18
+0200)
The previous code did not work when the list did not start at index 0
of the inventory list (issue #779).
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 3e0d7fd46710f2fa2b20a6145ba412f189664f9b..0cc63133245c7326ab9d305645eebba6436f8250 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-698,7
+698,7
@@
void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase)
bool selected = m_selected_item
&& m_invmgr->getInventory(m_selected_item->inventoryloc) == inv
&& m_selected_item->listname == s.listname
- && m_selected_item->i == i;
+ && m_selected_item->i == i
tem_i
;
bool hovering = rect.isPointInside(m_pointer);
if(phase == 0)