mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!P_MobjWasRemoved(target))
|
||||||
|
{
|
||||||
target->reactiontime = 0; // we're awake now...
|
target->reactiontime = 0; // we're awake now...
|
||||||
|
|
||||||
if (source && source != target)
|
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);
|
P_SetMobjState(target, target->info->seestate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -493,25 +493,8 @@ void Y_IntermissionDrawer(void)
|
||||||
|
|
||||||
dotimer:
|
dotimer:
|
||||||
|
|
||||||
if (netgame) // FREE PLAY?
|
if (netgame && forcefreeplay) // 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)
|
|
||||||
K_drawKartFreePlay(intertic);
|
K_drawKartFreePlay(intertic);
|
||||||
}
|
|
||||||
|
|
||||||
if (timer)
|
if (timer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue