From 7a9bb54a5d6e639defe217675aac25ddcb5e7dd1 Mon Sep 17 00:00:00 2001 From: Louis-Antoine Date: Sat, 9 Nov 2019 15:46:34 +0100 Subject: [PATCH 1/2] Fix silly typo :P --- src/g_game.c | 2 +- src/p_inter.c | 2 +- src/p_map.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index e2f43e4f2..a411c9658 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2803,7 +2803,7 @@ void G_AddPlayer(INT32 playernum) countplayers++; - if (!players->exiting) + if (!players[i]->exiting) notexiting++; if (!(cv_coopstarposts.value && (gametype == GT_COOP) && (p->starpostnum < players[i].starpostnum))) diff --git a/src/p_inter.c b/src/p_inter.c index 9017f795d..b4a16ba84 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -633,7 +633,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) if (!(netgame || multiplayer)) { player->continues += 1; - players->gotcontinue = true; + player->gotcontinue = true; if (P_IsLocalPlayer(player)) S_StartSound(NULL, sfx_s3kac); else diff --git a/src/p_map.c b/src/p_map.c index 159489f70..bb56a50b1 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -540,7 +540,7 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object) static void P_DoPterabyteCarry(player_t *player, mobj_t *ptera) { - if (player->powers[pw_carry] && players->powers[pw_carry] != CR_ROLLOUT) + if (player->powers[pw_carry] && player->powers[pw_carry] != CR_ROLLOUT) return; if (ptera->extravalue1 != 1) return; // Not swooping @@ -1040,7 +1040,7 @@ static boolean PIT_CheckThing(mobj_t *thing) { if (tmthing->z > thing->z + thing->height || thing->z > tmthing->z + tmthing->height || !thing->health) return true; - + if (thing == tmthing->tracer) // don't collide with rider return true; @@ -1054,7 +1054,7 @@ static boolean PIT_CheckThing(mobj_t *thing) P_KillMobj(thing, tmthing, tmthing->tracer, 0); return true; } - + if (thing->type == tmthing->type // bounce against other rollout rocks && (tmthing->momx || tmthing->momy || thing->momx || thing->momy)) { From 99b89b1ae380cc02ad1838d6156cd34e9dcbe83c Mon Sep 17 00:00:00 2001 From: Louis-Antoine Date: Sat, 9 Nov 2019 17:24:10 +0100 Subject: [PATCH 2/2] Shut up --- src/g_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index a411c9658..137992e4d 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2803,7 +2803,7 @@ void G_AddPlayer(INT32 playernum) countplayers++; - if (!players[i]->exiting) + if (!players[i].exiting) notexiting++; if (!(cv_coopstarposts.value && (gametype == GT_COOP) && (p->starpostnum < players[i].starpostnum)))