- Finally implemented code to keep some or all of your inventory intact when
respawning in coop. Now the new inventory code should finally be complete. :-) - Fixed: PROP_Inventory_PickupMessage was improperly defined for non-VC++ compilation. SVN r197 (trunk)
This commit is contained in:
parent
1bd6ac028b
commit
c87e2252ed
16 changed files with 231 additions and 77 deletions
|
|
@ -334,6 +334,14 @@ void AActor::Die (AActor *source, AActor *inflictor)
|
|||
this->player->cheats&CF_PREDICTING?"predicting":"real");
|
||||
}
|
||||
|
||||
// [RH] Notify this actor's items.
|
||||
for (AInventory *item = Inventory; item != NULL; )
|
||||
{
|
||||
AInventory *next = item->Inventory;
|
||||
item->OwnerDied();
|
||||
item = next;
|
||||
}
|
||||
|
||||
if (flags & MF_MISSILE)
|
||||
{ // [RH] When missiles die, they just explode
|
||||
P_ExplodeMissile (this, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue