- scriptified a_strifeitems.cpp and a_debris.cpp.

- Changed the glass shards so that they do not have to override FloorBounceMissile. It was the only place where this was virtually overridden and provided little usefulness.
- made 'out' variables work.
- fixed virtual call handling for HandlePickup.
This commit is contained in:
Christoph Oelckers 2016-11-29 12:17:05 +01:00
commit 3af9232fca
29 changed files with 374 additions and 528 deletions

View file

@ -901,7 +901,7 @@ void APlayerPawn::RemoveInventory (AInventory *item)
//
//===========================================================================
bool APlayerPawn::DoUseInventory (AInventory *item)
bool APlayerPawn::UseInventory (AInventory *item)
{
const PClass *itemtype = item->GetClass();
@ -915,7 +915,7 @@ bool APlayerPawn::DoUseInventory (AInventory *item)
return false;
}
if (!Super::DoUseInventory (item))
if (!Super::UseInventory (item))
{
// Heretic and Hexen advance the inventory cursor if the use failed.
// Should this behavior be retained?