ref: 7110aba73616e4f84b933a0db1ff96c4c22a9d6f
parent: 3191e80bf7fda36bf0c951b0363cd52fa6ceac6b
author: Jacob Moody <moody@posixcafe.org>
date: Fri Feb 24 21:05:54 EST 2023
compile for arm64
--- a/p_enemy.c
+++ b/p_enemy.c
@@ -503,7 +503,8 @@
angle_t an;
fixed_t dist;
- if (!netgame && players[0].health <= 0)
+ player = players;
+ if (!netgame && player->health <= 0)
{ // Single player game and player is dead, look for monsters
return(P_LookForMonsters(actor));
}
--- a/p_inter.c
+++ b/p_inter.c
@@ -873,6 +873,8 @@
static void P_KillMobj(mobj_t *source, mobj_t *target)
{
+ player_t *p;
+
target->flags &= ~(MF_SHOOTABLE|MF_FLOAT|MF_SKULLFLY|MF_NOGRAVITY);
target->flags |= MF_CORPSE|MF_DROPOFF;
target->flags2 &= ~MF2_PASSMOBJ;
@@ -905,7 +907,8 @@
}
else if (!netgame && (target->flags & MF_COUNTKILL))
{ // Count all monster deaths
- players[0].killcount++;
+ p = players;
+ p->killcount++;
}
if (target->player)
{