- moved the GetBlend script call to the one single place where it is needed to get rid of one native AInventory method.

This commit is contained in:
Christoph Oelckers 2018-11-29 23:48:55 +01:00
commit 7b63e088e1
5 changed files with 12 additions and 28 deletions

View file

@ -183,28 +183,6 @@ void AInventory::DepleteOrDestroy ()
}
}
//===========================================================================
//
// AInventory :: GetBlend
//
// Returns a color to blend to the player's view as long as they possess this
// item.
//
//===========================================================================
PalEntry AInventory::CallGetBlend()
{
IFVIRTUAL(AInventory, GetBlend)
{
VMValue params[1] = { (DObject*)this };
int retval;
VMReturn ret(&retval);
VMCall(func, params, 1, &ret, 1);
return retval;
}
else return 0;
}
//===========================================================================
//
// AInventory :: PrevInv