From a55b7f950ec0049962117e78944f29cd0fd749b7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Sep 2022 20:58:30 +0200 Subject: [PATCH] - function separators in quake.cpp. --- source/games/sw/src/quake.cpp | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/source/games/sw/src/quake.cpp b/source/games/sw/src/quake.cpp index 502e2973d..0796de4d1 100644 --- a/source/games/sw/src/quake.cpp +++ b/source/games/sw/src/quake.cpp @@ -52,6 +52,12 @@ inline uint8_t& QUAKE_Zamt(DSWActor* actor) { return SP_TAG3(actor); } // only for timed quakes #define QUAKE_WaitForTrigger(actor) (TEST_BOOL3(actor)) +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + void CopyQuakeSpotToOn(DSWActor* actor) { auto actorNew = insertActor(actor->sector(), STAT_QUAKE_SPOT); @@ -66,6 +72,12 @@ void CopyQuakeSpotToOn(DSWActor* actor) } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + void DoQuakeMatch(short match) { SWStatIterator it(STAT_QUAKE_SPOT); @@ -92,6 +104,12 @@ void DoQuakeMatch(short match) } } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + void ProcessQuakeOn(void) { SWStatIterator it(STAT_QUAKE_ON); @@ -107,6 +125,12 @@ void ProcessQuakeOn(void) } } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + void ProcessQuakeSpot(void) { int rand_test; @@ -149,6 +173,11 @@ void ProcessQuakeSpot(void) } } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- void QuakeViewChange(PLAYER* pp, DVector3& tpos, DAngle& tang) { DSWActor* save_act = nullptr; @@ -214,6 +243,12 @@ void QuakeViewChange(PLAYER* pp, DVector3& tpos, DAngle& tang) tang += tangdiff; } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + void SpawnQuake(sectortype* sect, const DVector3& pos, int tics, int amt, int radius) { @@ -233,6 +268,12 @@ void SpawnQuake(sectortype* sect, const DVector3& pos, int tics, int amt, int ra PlaySound(DIGI_ERUPTION, actorNew, v3df_follow|v3df_dontpan); } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + bool SetQuake(PLAYER* pp, short tics, short amt) { SpawnQuake(pp->cursector, pp->pos, tics, amt, 30000);