From d4a0cdd3c04ce98beb35c29a369e7581d86d8efa Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 30 Jun 2023 17:02:09 -0700 Subject: [PATCH] Sphere Box: use extravalue2 for sphere count extravalue1 is already used by timer --- src/k_battle.c | 2 +- src/p_inter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_battle.c b/src/k_battle.c index a58db50bc..6ba2cc412 100644 --- a/src/k_battle.c +++ b/src/k_battle.c @@ -256,7 +256,7 @@ mobj_t *K_SpawnSphereBox(fixed_t x, fixed_t y, fixed_t z, angle_t angle, SINT8 f drop->flags &= ~(MF_NOGRAVITY|MF_NOCLIPHEIGHT); - drop->extravalue1 = amount; + drop->extravalue2 = amount; return drop; } diff --git a/src/p_inter.c b/src/p_inter.c index 4fda56421..f1c8409e3 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -383,7 +383,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) P_SetTarget(&special->target, toucher); // P_KillMobj(special, toucher, toucher, DMG_NORMAL); P_ItemPop(special); - P_GivePlayerSpheres(player, special->extravalue1); + P_GivePlayerSpheres(player, special->extravalue2); return; case MT_ITEMCAPSULE: if (special->scale < special->extravalue1) // don't break it while it's respawning