From 94cc3ac59f6444e3cac1863463551057c1ceabc5 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 10 Apr 2025 11:56:54 -0400 Subject: [PATCH] Remove some confcliting objects --- src/info/mobjs.h | 6 ------ src/info/states.h | 15 --------------- src/p_mobj.c | 46 ---------------------------------------------- 3 files changed, 67 deletions(-) diff --git a/src/info/mobjs.h b/src/info/mobjs.h index 0eca5525f..0783cd339 100644 --- a/src/info/mobjs.h +++ b/src/info/mobjs.h @@ -125,7 +125,6 @@ _(FLINGEMERALD) // Lost emerald // Springs and others _(FAN) _(STEAM) -_(BUMPER) _(BALLOON) _(YELLOWSPRING) @@ -142,11 +141,6 @@ _(REDHORIZ) // Red Horizontal Spring _(BLUEHORIZ) // Blue Horizontal Spring _(GREYHORIZ) // Grey Horizontal Spring -_(BOOSTERSEG) -_(BOOSTERROLLER) -_(YELLOWBOOSTER) -_(REDBOOSTER) - // Interactive Objects _(BUBBLES) // Bubble source _(SIGN) // Level end sign diff --git a/src/info/states.h b/src/info/states.h index cbeb41bb4..c284ab3c0 100644 --- a/src/info/states.h +++ b/src/info/states.h @@ -1918,10 +1918,6 @@ _(STEAM6) _(STEAM7) _(STEAM8) -// Bumpers -_(BUMPER) -_(BUMPERHIT) - // Balloons _(BALLOON) _(BALLOONPOP1) @@ -2006,17 +2002,6 @@ _(GHORIZ2) _(GHORIZ3) _(GHORIZ4) -// Booster -_(BOOSTERSOUND) -_(YELLOWBOOSTERROLLER) -_(YELLOWBOOSTERSEG_LEFT) -_(YELLOWBOOSTERSEG_RIGHT) -_(YELLOWBOOSTERSEG_FACE) -_(REDBOOSTERROLLER) -_(REDBOOSTERSEG_LEFT) -_(REDBOOSTERSEG_RIGHT) -_(REDBOOSTERSEG_FACE) - // Rain _(RAIN1) _(RAINRETURN) diff --git a/src/p_mobj.c b/src/p_mobj.c index 020022cda..4af901fb6 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -11179,47 +11179,6 @@ static boolean P_SetupParticleGen(mapthing_t *mthing, mobj_t *mobj) return true; } -static boolean P_SetupBooster(mapthing_t* mthing, mobj_t* mobj, boolean strong) -{ - angle_t angle = FixedAngle(mthing->angle << FRACBITS); - fixed_t x1 = FINECOSINE((angle >> ANGLETOFINESHIFT) & FINEMASK); - fixed_t y1 = FINESINE((angle >> ANGLETOFINESHIFT) & FINEMASK); - fixed_t x2 = FINECOSINE(((angle + ANGLE_90) >> ANGLETOFINESHIFT) & FINEMASK); - fixed_t y2 = FINESINE(((angle + ANGLE_90) >> ANGLETOFINESHIFT) & FINEMASK); - statenum_t facestate = strong ? S_REDBOOSTERSEG_FACE : S_YELLOWBOOSTERSEG_FACE; - statenum_t leftstate = strong ? S_REDBOOSTERSEG_LEFT : S_YELLOWBOOSTERSEG_LEFT; - statenum_t rightstate = strong ? S_REDBOOSTERSEG_RIGHT : S_YELLOWBOOSTERSEG_RIGHT; - statenum_t rollerstate = strong ? S_REDBOOSTERROLLER : S_YELLOWBOOSTERROLLER; - - mobj_t *seg = P_SpawnMobjFromMobj(mobj, 26*x1, 26*y1, 0, MT_BOOSTERSEG); - seg->angle = angle - ANGLE_90; - P_SetMobjState(seg, facestate); - seg = P_SpawnMobjFromMobj(mobj, -26*x1, -26*y1, 0, MT_BOOSTERSEG); - seg->angle = angle + ANGLE_90; - P_SetMobjState(seg, facestate); - seg = P_SpawnMobjFromMobj(mobj, 21*x2, 21*y2, 0, MT_BOOSTERSEG); - seg->angle = angle; - P_SetMobjState(seg, leftstate); - seg = P_SpawnMobjFromMobj(mobj, -21*x2, -21*y2, 0, MT_BOOSTERSEG); - seg->angle = angle; - P_SetMobjState(seg, rightstate); - - seg = P_SpawnMobjFromMobj(mobj, 13*(x1 + x2), 13*(y1 + y2), 0, MT_BOOSTERROLLER); - seg->angle = angle; - P_SetMobjState(seg, rollerstate); - seg = P_SpawnMobjFromMobj(mobj, 13*(x1 - x2), 13*(y1 - y2), 0, MT_BOOSTERROLLER); - seg->angle = angle; - P_SetMobjState(seg, rollerstate); - seg = P_SpawnMobjFromMobj(mobj, -13*(x1 + x2), -13*(y1 + y2), 0, MT_BOOSTERROLLER); - seg->angle = angle; - P_SetMobjState(seg, rollerstate); - seg = P_SpawnMobjFromMobj(mobj, -13*(x1 - x2), -13*(y1 - y2), 0, MT_BOOSTERROLLER); - seg->angle = angle; - P_SetMobjState(seg, rollerstate); - - return true; -} - static void P_SnapToFinishLine(mobj_t *mobj) { line_t *finishline = P_FindNearestLine(mobj->x, mobj->y, @@ -11380,11 +11339,6 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean break; } break; - case MT_REDBOOSTER: - case MT_YELLOWBOOSTER: - if (!P_SetupBooster(mthing, mobj, mobj->type == MT_REDBOOSTER)) - return false; - break; case MT_AXIS: // Inverted if args[3] is set if (mthing->args[3])