- scriptified APlayerPawn::Die and fixed a few things I encountered while doing it.
This commit is contained in:
parent
cf9cd58310
commit
fb91982da2
16 changed files with 117 additions and 102 deletions
|
|
@ -3225,7 +3225,7 @@ void ModifyDropAmount(AInventory *inv, int dropamount)
|
|||
|
||||
CVAR(Int, sv_dropstyle, 0, CVAR_SERVERINFO | CVAR_ARCHIVE);
|
||||
|
||||
AInventory *P_DropItem (AActor *source, PClassActor *type, int dropamount, int chance)
|
||||
AActor *P_DropItem (AActor *source, PClassActor *type, int dropamount, int chance)
|
||||
{
|
||||
if (type != NULL && pr_dropitem() <= chance)
|
||||
{
|
||||
|
|
@ -3276,9 +3276,8 @@ AInventory *P_DropItem (AActor *source, PClassActor *type, int dropamount, int c
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
return inv;
|
||||
}
|
||||
// we can't really return an AInventory pointer to a non-inventory item here, can we?
|
||||
return mo;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue