- removed some unused variables.

This commit is contained in:
Christoph Oelckers 2020-10-13 21:45:21 +02:00
parent f0ef7a1322
commit 1637157f46
2 changed files with 2 additions and 9 deletions

View file

@ -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));

View file

@ -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));