diff --git a/source/games/exhumed/src/exhumed.cpp b/source/games/exhumed/src/exhumed.cpp index 09e963e5f..fa07cf1fb 100644 --- a/source/games/exhumed/src/exhumed.cpp +++ b/source/games/exhumed/src/exhumed.cpp @@ -108,13 +108,10 @@ short nAlarmTicks; short nButtonColor; short nEnergyChan; - -short bModemPlay = false; int lCountDown = 0; short nEnergyTowers = 0; short nCfgNetPlayers = 0; -FILE *vcrfp = NULL; int lLocalCodes = 0; @@ -122,12 +119,6 @@ short bCoordinates = false; int nNetTime = -1; -short nCodeMin = 0; -short nCodeMax = 0; -short nCodeIndex = 0; - -//short nScreenWidth = 320; -//short nScreenHeight = 200; int flash; int totalmoves; @@ -135,14 +126,9 @@ short nCurBodyNum = 0; short nBodyTotal = 0; -short lastfps; short nTotalPlayers = 1; // TODO: Rename this (or make it static) so it doesn't conflict with library function -//short socket = 0; -short nFirstPassword = 0; -short nFirstPassInfo = 0; -short nPasswordCount = 0; short bSnakeCam = false; short bRecord = false; diff --git a/source/games/exhumed/src/exhumed.h b/source/games/exhumed/src/exhumed.h index 9927124a7..643ce7ec4 100644 --- a/source/games/exhumed/src/exhumed.h +++ b/source/games/exhumed/src/exhumed.h @@ -130,8 +130,6 @@ extern short nButtonColor; extern short nHeadStage; -extern short lastfps; - extern int flash; extern short nSnakeCam; diff --git a/source/games/exhumed/src/init.cpp b/source/games/exhumed/src/init.cpp index bba7afc52..b18a66e71 100644 --- a/source/games/exhumed/src/init.cpp +++ b/source/games/exhumed/src/init.cpp @@ -174,7 +174,6 @@ void InitLevel(MapRecord* map) InitPlayerKeys(i); } EndLevel = 0; - lastfps = 0; ResetView(); ResetEngine(); totalmoves = 0; diff --git a/source/games/exhumed/src/object.cpp b/source/games/exhumed/src/object.cpp index faee5499f..1ac006fc9 100644 --- a/source/games/exhumed/src/object.cpp +++ b/source/games/exhumed/src/object.cpp @@ -154,7 +154,7 @@ struct Trap short field_0; short nType; - short field_6; + int field_6; int field_8; // wallnum short field_A; short field_C; @@ -2612,15 +2612,8 @@ void PostProcess() if (i != j && SectSpeed[j] && !(SectFlag[i] & kSectLava)) { - int xVal = wall[sector[i].wallptr].x - wall[sector[j].wallptr].x; - if (xVal < 0) { - xVal = -xVal; - } - - int yVal = wall[sector[i].wallptr].x - wall[sector[j].wallptr].x; - if (yVal < 0) { - yVal = -yVal; - } + int xVal = abs(sector[i].firstWall()->x - sector[j].firstWall()->x); + int yVal = abs(sector[i].firstWall()->y - sector[j].firstWall()->y); if (xVal < 15000 && yVal < 15000 && (xVal + yVal < var_20)) {