fixed the bug of disabled removal of empty chests

master
Perttu Ahola 2011-04-06 01:42:37 +03:00
parent 5b72b22409
commit 212f34db82
2 changed files with 9 additions and 3 deletions

View File

@ -113,6 +113,10 @@ Gaming ideas:
- Random NPC traders. what else? - Random NPC traders. what else?
Game content:
-------------
- Glass blocks
Documentation: Documentation:
-------------- --------------
@ -163,6 +167,8 @@ TODO: Flowing water animation
SUGG: Draw cubes in inventory directly with 3D drawing commands, so that SUGG: Draw cubes in inventory directly with 3D drawing commands, so that
animating them is easier. animating them is easier.
SUGG: Option for enabling proper alpha channel for textures
Configuration: Configuration:
-------------- --------------

View File

@ -172,10 +172,10 @@ bool ChestNodeMetadata::nodeRemovalDisabled()
*/ */
InventoryList *list = m_inventory->getList("0"); InventoryList *list = m_inventory->getList("0");
if(list == NULL) if(list == NULL)
return true;
if(list->getUsedSlots() == 0)
return true;
return false; return false;
if(list->getUsedSlots() == 0)
return false;
return true;
} }
/* /*