more inventory scriptification
* completely scriptified DehackedPickup and FakeInventory. * scriptified all remaining virtual functions of Inventory, so that its inheritance is now 100% script-side. * scriptified CallTryPickup and most of the code called by that. - fixed: Passing local variables by reference did not work in the VM.
This commit is contained in:
parent
1750ded7c4
commit
3c30b59bab
19 changed files with 483 additions and 612 deletions
|
|
@ -771,7 +771,7 @@ void FGLRenderer::SetFixedColormap (player_t *player)
|
|||
auto litetype = PClass::FindActor(NAME_PowerLightAmp);
|
||||
for(AInventory * in = cplayer->mo->Inventory; in; in = in->Inventory)
|
||||
{
|
||||
PalEntry color = in->GetBlend ();
|
||||
PalEntry color = in->CallGetBlend ();
|
||||
|
||||
// Need special handling for light amplifiers
|
||||
if (in->IsKindOf(torchtype))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue