From 981ca90c4eaa6d9cc4f56b706340294d2ea3f697 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 14 Nov 2011 22:22:50 +0200 Subject: MADS: remove/comment unused variables --- engines/m4/assets.cpp | 4 ++-- engines/m4/mads_menus.cpp | 4 ++-- engines/m4/mads_views.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'engines') diff --git a/engines/m4/assets.cpp b/engines/m4/assets.cpp index d6cc71e133..f70a35d5ad 100644 --- a/engines/m4/assets.cpp +++ b/engines/m4/assets.cpp @@ -301,11 +301,11 @@ void SpriteAsset::loadMadsSpriteAsset(MadsM4Engine *vm, Common::SeekableReadStre int32 SpriteAsset::parseSprite(bool isBigEndian) { - uint32 format, chunkType, chunkSize = 0; + uint32 chunkType, chunkSize = 0; _colorCount = 0; - format = (!isBigEndian) ? _stream->readUint32LE() : _stream->readUint32BE(); + /*format = (!isBigEndian) ? _stream->readUint32LE() : */_stream->readUint32BE(); chunkType = (!isBigEndian) ? _stream->readUint32LE() : _stream->readUint32BE(); diff --git a/engines/m4/mads_menus.cpp b/engines/m4/mads_menus.cpp index 8a2ab67f11..ae16b00616 100644 --- a/engines/m4/mads_menus.cpp +++ b/engines/m4/mads_menus.cpp @@ -716,7 +716,7 @@ void RexDialogView::onRefresh(RectList *rects, M4Surface *destSurface) { bool RexDialogView::onEvent(M4EventType eventType, int32 param1, int x, int y, bool &captureEvents) { static bool word_7F28C = false; int word_7FED2 = 0; - int word_8502A = 0; + //int word_8502A = 0; // If it's a keypress, handle it immediately if (eventType == KEVENT_KEY) { @@ -789,7 +789,7 @@ bool RexDialogView::onEvent(M4EventType eventType, int32 param1, int x, int y, b if (!word_7F28C || (objIndex <= 18)) _selectedLine = objIndex; - word_8502A = -1; + //word_8502A = -1; } return true; diff --git a/engines/m4/mads_views.cpp b/engines/m4/mads_views.cpp index d21bfc1cf2..c1d88d5741 100644 --- a/engines/m4/mads_views.cpp +++ b/engines/m4/mads_views.cpp @@ -77,7 +77,7 @@ void MadsAction::appendVocab(int vocabId, bool capitalise) { void MadsAction::set() { int hotspotCount = _madsVm->scene()->getSceneResources().hotspots->size(); - bool flag = false; + bool flag = false; // FIXME: unused strcpy(_statusText, ""); _currentAction = -1; -- cgit v1.2.3