- scriptified the backpack.
- added GetParentClass builtin to compiler.
This commit is contained in:
parent
1f4342b48e
commit
4759f9a399
9 changed files with 246 additions and 192 deletions
|
|
@ -859,7 +859,7 @@ void cht_Take (player_t *player, const char *name, int amount)
|
|||
{
|
||||
PClass *type = PClassActor::AllActorClasses[i];
|
||||
|
||||
if (type->IsDescendantOf(RUNTIME_CLASS (ABackpackItem)))
|
||||
if (type->IsDescendantOf(PClass::FindClass(NAME_BackpackItem)))
|
||||
{
|
||||
AInventory *pack = player->mo->FindInventory(static_cast<PClassActor *>(type));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue