- 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:
parent
a14b0c58bf
commit
7b63e088e1
5 changed files with 12 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue