Buggy netgame! Sorry yalls.

* Fix free play on intermission.
* Fix crash in killing/damaging mobj with null death/pain state.
This commit is contained in:
toaster 2018-07-29 23:07:10 +01:00
parent 74e182237a
commit 0dddf7623a
2 changed files with 17 additions and 31 deletions

View file

@ -3492,6 +3492,8 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
break;
}
if (!P_MobjWasRemoved(target))
{
target->reactiontime = 0; // we're awake now...
if (source && source != target)
@ -3510,6 +3512,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
P_SetMobjState(target, target->info->seestate);
}
}
}
return true;
}

View file

@ -493,25 +493,8 @@ void Y_IntermissionDrawer(void)
dotimer:
if (netgame) // FREE PLAY?
{
i = MAXPLAYERS;
if (!forcefreeplay)
{
// check to see if there's anyone else at all
for (i = 0; i < MAXPLAYERS; i++)
{
if (i == consoleplayer)
continue;
if (playeringame[i] && !stplyr->spectator)
break;
}
}
if (i == MAXPLAYERS)
if (netgame && forcefreeplay) // FREE PLAY?
K_drawKartFreePlay(intertic);
}
if (timer)
{