From 27c9d698bea5747b333c94ad33ecd42bbe9cc3ad Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Tue, 31 May 2022 09:14:19 -0400 Subject: [PATCH] Reverse weather speed Makes more logical sense on the user end for negative to go up, since most weather should be going down. They need to SPAWN with reversed momz too :V --- src/info.c | 6 +++--- src/p_mobj.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/info.c b/src/info.c index 754530837..78181c2e7 100644 --- a/src/info.c +++ b/src/info.c @@ -18246,7 +18246,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] = S_SPLASH1, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound - -72*FRACUNIT, // speed + 72*FRACUNIT, // speed 1*FRACUNIT, // radius 8*FRACUNIT, // height 0, // display offset @@ -18273,7 +18273,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] = S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound - -2*FRACUNIT, // speed + 2*FRACUNIT, // speed 4*FRACUNIT, // radius 4*FRACUNIT, // height 0, // display offset @@ -18300,7 +18300,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] = S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound - -24*FRACUNIT, // speed + 24*FRACUNIT, // speed 4*FRACUNIT, // radius 4*FRACUNIT, // height 0, // display offset diff --git a/src/p_mobj.c b/src/p_mobj.c index 5219fb707..1fa1e0b92 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -3825,7 +3825,7 @@ void P_PrecipThinker(precipmobj_t *mobj) // Reset to ceiling! P_SetPrecipMobjState(mobj, mobj->info->spawnstate); mobj->z = mobj->ceilingz; - mobj->momz = mobj->info->speed; + mobj->momz = -mobj->info->speed; mobj->precipflags &= ~PCF_SPLASH; } @@ -10371,7 +10371,7 @@ static precipmobj_t *P_SpawnPrecipMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype mobj->ceilingrover = NULL; mobj->z = z; - mobj->momz = info->speed; + mobj->momz = -info->speed; mobj->thinker.function.acp1 = (actionf_p1)P_NullPrecipThinker; P_AddThinker(THINK_PRECIP, &mobj->thinker);