aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiInventoryList.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-07-06 15:50:55 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-07-06 15:50:55 +0200
commite610149c0cc3516b61115541f2f4f78344a0bb2c (patch)
treeb1205a15af51db02c9301f4ab8ecdd7527d13c10 /src/gui/guiInventoryList.h
parenta87805a9445f280ca71da322c4b32cf357744511 (diff)
downloaddragonfireclient-e610149c0cc3516b61115541f2f4f78344a0bb2c.tar.xz
Initial Commit
Diffstat (limited to 'src/gui/guiInventoryList.h')
-rw-r--r--src/gui/guiInventoryList.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/guiInventoryList.h b/src/gui/guiInventoryList.h
index fd2c3601b..934d9ea3a 100644
--- a/src/gui/guiInventoryList.h
+++ b/src/gui/guiInventoryList.h
@@ -1,17 +1,14 @@
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
-
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
-
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -107,7 +104,7 @@ private:
const InventoryLocation m_inventoryloc;
const std::string m_listname;
- // specifies the width and height of the inventorylist in itemslots
+ // the specified width and height of the shown inventorylist in itemslots
const v2s32 m_geom;
// the first item's index in inventory
const s32 m_start_item_i;
@@ -127,4 +124,7 @@ private:
// the index of the hovered item; -1 if no item is hovered
s32 m_hovered_i;
+
+ // we do not want to write a warning on every draw
+ bool m_already_warned;
};