From acc0e37a142590af4d878d2b92e4e3a0d8c51653 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Fri, 25 Nov 2016 00:12:59 +0800 Subject: [PATCH] Got rid of unused "osx" global var --- Source/GameDraw.cpp | 1 - Source/GameInitDispose.cpp | 1 - Source/Globals.cpp | 1 - Source/OpenGL_Windows.cpp | 2 -- Source/Person.cpp | 5 ++--- Source/Weapons.cpp | 1 - 6 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/GameDraw.cpp b/Source/GameDraw.cpp index 6c8ac0a..51edee1 100644 --- a/Source/GameDraw.cpp +++ b/Source/GameDraw.cpp @@ -40,7 +40,6 @@ extern Light light; extern Objects objects; extern int detail; extern float usermousesensitivity; -extern bool osx; extern float camerashake; extern int slomo; extern float slomodelay; diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 60727a7..df77904 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -45,7 +45,6 @@ extern GLubyte bloodText[512 * 512 * 3]; extern GLubyte wolfbloodText[512 * 512 * 3]; extern bool ismotionblur; extern bool trilinear; -extern bool osx; extern bool musictoggle; extern int environment; extern bool ambientsound; diff --git a/Source/Globals.cpp b/Source/Globals.cpp index 709e021..624aa58 100644 --- a/Source/Globals.cpp +++ b/Source/Globals.cpp @@ -88,7 +88,6 @@ GLubyte bloodText[512 * 512 * 3] = {0}; GLubyte wolfbloodText[512 * 512 * 3] = {0}; float colors[3] = {0}; int bloodtoggle = 0; -bool osx = false; float camerashake = 0; float woozy = 0; float blackout = 0; diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index d79162b..d66fb72 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -47,7 +47,6 @@ extern int slomo; extern bool cellophane; extern float texdetail; -extern bool osx; extern bool freeze; extern bool stillloading; extern int mainmenu; @@ -245,7 +244,6 @@ bool SetUp () { LOGFUNC; - osx = 0; cellophane = 0; texdetail = 4; slomospeed = 0.25; diff --git a/Source/Person.cpp b/Source/Person.cpp index 95e06b9..0b52640 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -42,7 +42,6 @@ extern GLubyte bloodText[512 * 512 * 3]; extern GLubyte wolfbloodText[512 * 512 * 3]; extern int bloodtoggle; extern Objects objects; -extern bool osx; extern bool autoslomo; extern float camerashake; extern float woozy; @@ -4208,7 +4207,7 @@ void Person::DoStuff() bleeding -= multiplier * .3; if (bloodtoggle == 2) { skeleton.drawmodel.textureptr.bind(); - if (bleeding <= 0 && (detail != 2 || osx)) + if ((bleeding <= 0) && (detail != 2)) DoMipmaps(); } } @@ -4359,7 +4358,7 @@ void Person::DoStuff() } } } - if (!osx && detail > 1) { + if (detail > 1) { skeleton.drawmodel.textureptr.bind(); DoMipmaps(); } diff --git a/Source/Weapons.cpp b/Source/Weapons.cpp index 44c78cf..b878458 100644 --- a/Source/Weapons.cpp +++ b/Source/Weapons.cpp @@ -42,7 +42,6 @@ extern float texdetail; extern GLubyte bloodText[512 * 512 * 3]; extern int bloodtoggle; extern Objects objects; -extern bool osx; extern bool autoslomo; extern float camerashake; extern float woozy; -- 2.39.2