From 1637157f461812ca9f99c509ad0d918e6815d62f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Oct 2020 21:45:21 +0200 Subject: [PATCH] - removed some unused variables. --- source/blood/src/ai.cpp | 4 ++-- source/blood/src/view.cpp | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/source/blood/src/ai.cpp b/source/blood/src/ai.cpp index b39af2865..41974c928 100644 --- a/source/blood/src/ai.cpp +++ b/source/blood/src/ai.cpp @@ -1743,7 +1743,7 @@ class AILoadSave : public LoadSave void AILoadSave::Load(void) { - Read(cumulDamage, sizeof(cumulDamage)); + //Read(cumulDamage, sizeof(cumulDamage)); Read(gDudeSlope, sizeof(gDudeSlope)); Read(gDudeExtra, sizeof(gDudeExtra)); Read(gGenDudeExtra, sizeof(gGenDudeExtra)); @@ -1751,7 +1751,7 @@ void AILoadSave::Load(void) void AILoadSave::Save(void) { - Write(cumulDamage, sizeof(cumulDamage)); + //Write(cumulDamage, sizeof(cumulDamage)); data never crosses the end-of-frame barrier Write(gDudeSlope, sizeof(gDudeSlope)); Write(gDudeExtra, sizeof(gDudeExtra)); Write(gGenDudeExtra, sizeof(gGenDudeExtra)); diff --git a/source/blood/src/view.cpp b/source/blood/src/view.cpp index 77cd339be..8937d353b 100644 --- a/source/blood/src/view.cpp +++ b/source/blood/src/view.cpp @@ -1070,13 +1070,8 @@ public: void Save(void); }; -static int messageTime; -static char message[256]; - void ViewLoadSave::Load(void) { - Read(&messageTime, sizeof(messageTime)); - Read(message, sizeof(message)); Read(otherMirrorGotpic, sizeof(otherMirrorGotpic)); Read(bakMirrorGotpic, sizeof(bakMirrorGotpic)); Read(&gScreenTilt, sizeof(gScreenTilt)); @@ -1087,8 +1082,6 @@ void ViewLoadSave::Load(void) void ViewLoadSave::Save(void) { - Write(&messageTime, sizeof(messageTime)); - Write(message, sizeof(message)); Write(otherMirrorGotpic, sizeof(otherMirrorGotpic)); Write(bakMirrorGotpic, sizeof(bakMirrorGotpic)); Write(&gScreenTilt, sizeof(gScreenTilt));