From b60181eed522f44f123552dccfbedf3a1a26ae35 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 3 Aug 2022 15:54:39 +0200 Subject: [PATCH] - variable cleanup. --- source/build/include/build.h | 1 - source/build/src/engine.cpp | 20 -------------------- source/games/blood/src/view.cpp | 1 - source/games/sw/src/draw.cpp | 2 -- wadsrc/static/menudef.txt | 8 -------- 5 files changed, 32 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index b479ebdf5..eb2cc1366 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -102,7 +102,6 @@ struct usermaphack_t EXTERN int leveltimer; EXTERN int32_t xdim, ydim; -EXTERN int32_t yxaspect, viewingrange; EXTERN int32_t Numsprites; EXTERN int32_t display_mirror; diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index b3bdb6b58..731c3e021 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -41,9 +41,6 @@ int32_t mdtims, omdtims; -float fcosglobalang, fsinglobalang; -float fydimen, fviewingrange; - uint8_t globalr = 255, globalg = 255, globalb = 255; static int16_t radarang[1280]; @@ -77,15 +74,6 @@ static void getclosestpointonwall_internal(vec2_t const p, int32_t const dawall, } - -static int32_t globaly1, globalx2; - -int16_t pointhighlight=-1, linehighlight=-1, highlightcnt=0; - -static int16_t numhits; - - - // // Internal Engine Functions // @@ -712,11 +700,3 @@ int tilehasmodelorvoxel(int const tilenume, int pal) (mdinited && hw_models && tile2model[Ptile2tile(tilenume, pal)].modelid != -1) || (r_voxels && tiletovox[tilenume] != -1); } - - -CCMD(updatesectordebug) -{ - int sect = 319; - updatesector(1792, 24334, §); - int blah = sect; -} \ No newline at end of file diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index 56e81c0be..8a358882d 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -783,7 +783,6 @@ void viewDrawScreen(bool sceneonly) if (v4 && gNetPlayers > 1) { DoLensEffect(); - viewingRange = viewingrange; r otatesprite(IntToFixed(280), IntToFixed(35), 53248, 512, 4077, v10, v14, 512 + 6, gViewX0, gViewY0, gViewX1, gViewY1); r otatesprite(IntToFixed(280), IntToFixed(35), 53248, 0, 1683, v10, 0, 512 + 35, gViewX0, gViewY0, gViewX1, gViewY1); } diff --git a/source/games/sw/src/draw.cpp b/source/games/sw/src/draw.cpp index ee3e7be69..efc8e3dfd 100644 --- a/source/games/sw/src/draw.cpp +++ b/source/games/sw/src/draw.cpp @@ -1374,8 +1374,6 @@ void drawscreen(PLAYER* pp, double smoothratio, bool sceneonly) extern bool FAF_DebugView; PLAYER* camerapp; // prediction player if prediction is on, else regular player - int const viewingRange = viewingrange; - DrawScreen = true; PreDraw(); diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 4b2bc5db1..3075c8d3f 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1072,12 +1072,6 @@ OptionValue "Precision" 1, "$OPTVAL_QUALITY" } -OptionValue "VideoRenderers" -{ - 0, "Polymost" - 1, "Raze3D" -} - OptionMenu "VideoOptions" protected { Title "$DSPLYMNU_TITLE" @@ -1088,8 +1082,6 @@ OptionMenu "VideoOptions" protected Submenu "$GLMNU_POSTPROCESS", "PostProcessMenu" Submenu "$GLTEXMNU_TITLE", "GLTextureGLOptions" StaticText "" - Option "Renderer", vid_renderer, "VideoRenderers" - StaticText "" Slider "$DSPLYMNU_GAMMA", "vid_gamma", 0.75, 3.0, 0.05, 2 Slider "$DSPLYMNU_BRIGHTNESS", "vid_brightness", -0.8,0.8, 0.05,2