Fixed player respawning
Pass appropriate information to the VM
This commit is contained in:
parent
c72888dcf8
commit
5730719182
1 changed files with 4 additions and 2 deletions
|
|
@ -5726,8 +5726,10 @@ AActor *FLevelLocals::SpawnPlayer (FPlayerStart *mthing, int playernum, int flag
|
|||
|
||||
IFVIRTUALPTRNAME(p->mo, NAME_PlayerPawn, ResetAirSupply)
|
||||
{
|
||||
int drowning = 0;
|
||||
VMValue params[] = { p->mo, false };
|
||||
VMCall(func, params, 2, nullptr, 0);
|
||||
VMReturn rets[] = { &drowning };
|
||||
VMCall(func, params, 2, rets, 1);
|
||||
}
|
||||
|
||||
for (int ii = 0; ii < MAXPLAYERS; ++ii)
|
||||
|
|
@ -5762,7 +5764,7 @@ AActor *FLevelLocals::SpawnPlayer (FPlayerStart *mthing, int playernum, int flag
|
|||
IFVM(PlayerPawn, FilterCoopRespawnInventory)
|
||||
{
|
||||
VMValue params[] = { p->mo, oldactor, ((heldWeap == nullptr || (heldWeap->ObjectFlags & OF_EuthanizeMe)) ? nullptr : heldWeap) };
|
||||
VMCall(func, params, 2, nullptr, 0);
|
||||
VMCall(func, params, 3, nullptr, 0);
|
||||
}
|
||||
}
|
||||
if (oldactor != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue