aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-09-30 22:00:05 +0200
committerStrangerke2013-09-30 22:00:05 +0200
commit98b5fe757f2559acd90b05f20ce4425ab8c73b0f (patch)
tree6cab7fffd41cb1a0b5ac7112af919dd3991ebf58
parentb160a156c1653f32c57ce9479cb27c44e5ed4dc7 (diff)
downloadscummvm-rg350-98b5fe757f2559acd90b05f20ce4425ab8c73b0f.tar.gz
scummvm-rg350-98b5fe757f2559acd90b05f20ce4425ab8c73b0f.tar.bz2
scummvm-rg350-98b5fe757f2559acd90b05f20ce4425ab8c73b0f.zip
AVALANCHE: Remove various dead variables and associated code
-rw-r--r--engines/avalanche/animation.cpp2
-rw-r--r--engines/avalanche/avalanche.cpp1
-rw-r--r--engines/avalanche/avalanche.h7
-rw-r--r--engines/avalanche/avalot.cpp2
4 files changed, 2 insertions, 10 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp
index 89fd16f258..f7f103d988 100644
--- a/engines/avalanche/animation.cpp
+++ b/engines/avalanche/animation.cpp
@@ -1091,7 +1091,7 @@ void Animation::drawSprites() {
* @remarks Originally called 'trippancy_link'
*/
void Animation::animLink() {
- if (_vm->_menu->isActive() | _vm->_onToolbar | _vm->_seeScroll)
+ if (_vm->_menu->isActive() | _vm->_seeScroll)
return;
for (int16 i = 0; i < kSpriteNumbMax; i++) {
if (_sprites[i]._quick && _sprites[i]._visible)
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp
index 0a4e7b1c03..54bede1af9 100644
--- a/engines/avalanche/avalanche.cpp
+++ b/engines/avalanche/avalanche.cpp
@@ -388,7 +388,6 @@ bool AvalancheEngine::loadGame(const int16 slot) {
refreshObjectList();
_animation->updateSpeed();
drawDirection();
- _onToolbar = false;
_animation->animLink();
_background->update();
diff --git a/engines/avalanche/avalanche.h b/engines/avalanche/avalanche.h
index 70e2e8689f..e27848c1dc 100644
--- a/engines/avalanche/avalanche.h
+++ b/engines/avalanche/avalanche.h
@@ -162,9 +162,6 @@ private:
#endif
public:
- static const int16 kXW = 30;
- static const int16 kYW = 36; // x width & y whatsit
- static const int16 kMargin = 5;
static const MouseHotspotType kMouseHotSpots[9];
static const int16 kMaxSprites = 2; // Current max no. of sprites.
@@ -184,8 +181,6 @@ public:
};
// These following static constants should be included in CFG when it's written.
-
- static const bool kSlowComputer = false; // Stops walking when mouse touches toolbar.
static const int16 kBorder = 1; // size of border on shadowboxes
static const int16 kWalk = 3;
static const int16 kRun = 5;
@@ -282,7 +277,7 @@ public:
int16 _talkX, _talkY;
Color _talkBackgroundColor, _talkFontColor;
byte _scrollBells; // no. of times to ring the bell
- bool _onToolbar, _seeScroll; // TODO: maybe this means we're interacting with the toolbar / a scroll?
+ bool _seeScroll; // TODO: maybe this means we're interacting with the toolbar / a scroll?
char _objectList[10];
// Called .free() for them in ~Gyro().
int8 _scoreToDisplay[3];
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 797301898b..1e739709b1 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -1243,7 +1243,6 @@ void AvalancheEngine::guideAvvy(Common::Point cursorPos) {
void AvalancheEngine::checkClick() {
Common::Point cursorPos = getMousePos();
- _onToolbar = kSlowComputer && ((cursorPos.y >= 169) || (cursorPos.y <= 10));
/*if (mrelease > 0)
after_the_scroll = false;*/
@@ -1523,7 +1522,6 @@ void AvalancheEngine::newGame() {
_thinkThing = true;
_thinks = 2;
refreshObjectList();
- _onToolbar = false;
_seeScroll = false;
avvy->appear(300, 117, kDirRight); // Needed to initialize Avalot.