mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 15:32:10 +00:00
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:
parent
74e182237a
commit
0dddf7623a
2 changed files with 17 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue