mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Merge branch 'next' into public_next
This commit is contained in:
commit
4da3b7eac1
2 changed files with 7 additions and 1 deletions
|
@ -716,6 +716,12 @@ void Net_CloseConnection(INT32 node)
|
||||||
if (!node)
|
if (!node)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (node < 0 || node >= MAXNETNODES) // prevent invalid nodes from crashing the game
|
||||||
|
{
|
||||||
|
CONS_Alert(CONS_WARNING, M_GetText("Net_CloseConnection: invalid node %d detected!\n"), node);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
nodes[node].flags |= NF_CLOSE;
|
nodes[node].flags |= NF_CLOSE;
|
||||||
|
|
||||||
// try to Send ack back (two army problem)
|
// try to Send ack back (two army problem)
|
||||||
|
|
|
@ -1102,7 +1102,7 @@ void A_JetJawChomp(mobj_t *actor)
|
||||||
if (!actor->target || !(actor->target->flags & MF_SHOOTABLE)
|
if (!actor->target || !(actor->target->flags & MF_SHOOTABLE)
|
||||||
|| actor->target->health <= 0 || !P_CheckSight(actor, actor->target))
|
|| actor->target->health <= 0 || !P_CheckSight(actor, actor->target))
|
||||||
{
|
{
|
||||||
P_SetMobjState(actor, actor->info->spawnstate);
|
P_SetMobjStateNF(actor, actor->info->spawnstate);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue