- added new IF_UNTOSSABLE flag for items that should be removable by any inventory function but not be droppable by the 'drop' CCMD.

SVN r3049 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-16 08:21:38 +00:00
commit a06b88fa50
3 changed files with 5 additions and 4 deletions

View file

@ -628,7 +628,7 @@ AInventory *AInventory::CreateTossable ()
{
return NULL;
}
if ((ItemFlags & IF_UNDROPPABLE) || Owner == NULL || Amount <= 0)
if ((ItemFlags & (IF_UNDROPPABLE|IF_UNTOSSABLE)) || Owner == NULL || Amount <= 0)
{
return NULL;
}