From 86d36d1fd11c9083021eaecfae286c31022ff45c Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Fri, 22 Sep 2023 21:42:40 +0300 Subject: [PATCH] remove some unnecessary hunk usage --- source/psp/video_hardware_QMB.cpp | 4 +++- source/psp/video_hardware_main.cpp | 2 +- source/psp/video_hardware_model.h | 8 ++++---- source/psp/video_hardware_warp.cpp | 2 ++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/source/psp/video_hardware_QMB.cpp b/source/psp/video_hardware_QMB.cpp index aa0e352..af47210 100644 --- a/source/psp/video_hardware_QMB.cpp +++ b/source/psp/video_hardware_QMB.cpp @@ -1964,6 +1964,7 @@ void QMB_Shockwave_Splash(vec3_t org, int radius) } extern sfx_t *cl_sfx_thunder; +/* void QMB_LetItRain(void) { int i; @@ -2001,7 +2002,7 @@ void QMB_LetItRain(void) S_StartSound (-1, 0, cl_sfx_thunder, p->midpoint, 1, 1); cl.thundertime = cl.time + (rand()% 60 + 1); }*/ - + /* point[0] = p->midpoint[0] + (rand() % 80 - 40); point[1] = p->midpoint[1] + (rand() % 80 - 40); point[2] = p->midpoint[2]; @@ -2011,6 +2012,7 @@ void QMB_LetItRain(void) } } }; +*/ //R00k: revamped to coincide with classic particle style... diff --git a/source/psp/video_hardware_main.cpp b/source/psp/video_hardware_main.cpp index e80955c..a9164a4 100644 --- a/source/psp/video_hardware_main.cpp +++ b/source/psp/video_hardware_main.cpp @@ -44,7 +44,7 @@ void Fog_DisableGFog (void); void R_DrawDecals (void); void R_RenderDecals (void); void R_MarkLeaves (void); -void QMB_LetItRain(void); +// void QMB_LetItRain(void); void QMB_LaserSight (void); void VID_SetPaletteH2(); void VID_SetPaletteTX(); diff --git a/source/psp/video_hardware_model.h b/source/psp/video_hardware_model.h index 29b442a..2ff3ebc 100644 --- a/source/psp/video_hardware_model.h +++ b/source/psp/video_hardware_model.h @@ -151,10 +151,10 @@ typedef struct glpoly_s struct glpoly_s *chain; int numverts; int flags; // for SURF_UNDERWATER - struct glpoly_s *detail_chain; // next detail poly in chain - struct glpoly_s *caustics_chain; // next caustic poly in chain - vec3_t midpoint;//MHQuake - float fxofs; //MHQuake + // struct glpoly_s *detail_chain; // next detail poly in chain + // struct glpoly_s *caustics_chain; // next caustic poly in chain + // vec3_t midpoint;//MHQuake + // float fxofs; //MHQuake // shpuld: for display list allocated temporary memory for psp rendering int numclippedverts; diff --git a/source/psp/video_hardware_warp.cpp b/source/psp/video_hardware_warp.cpp index 7756c09..e48f931 100644 --- a/source/psp/video_hardware_warp.cpp +++ b/source/psp/video_hardware_warp.cpp @@ -452,6 +452,7 @@ based on water polys! By Crow_bar. ============= */ +/* void EmitUnderWaterPolys (void) { const float scale = (-3 * (0.5 / 64)); @@ -537,6 +538,7 @@ void EmitUnderWaterPolys (void) caustics_polys = NULL; } +*/ /* =============