aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-02-18 14:15:28 +0100
committeruruk2014-02-18 14:15:28 +0100
commit3b313bfc83f922c5ed92503f0de99cec0bcb6f12 (patch)
tree400f28a041aa4428158f8658f40244b26bae181e
parentf20d4e726d4c747d9c813d12834d35c7475e250e (diff)
downloadscummvm-rg350-3b313bfc83f922c5ed92503f0de99cec0bcb6f12.tar.gz
scummvm-rg350-3b313bfc83f922c5ed92503f0de99cec0bcb6f12.tar.bz2
scummvm-rg350-3b313bfc83f922c5ed92503f0de99cec0bcb6f12.zip
AVALANCHE: Implement ShootEmUp::blankIt().
-rw-r--r--engines/avalanche/shootemup.cpp4
-rw-r--r--engines/avalanche/shootemup.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/engines/avalanche/shootemup.cpp b/engines/avalanche/shootemup.cpp
index 435adb1d48..530e65d883 100644
--- a/engines/avalanche/shootemup.cpp
+++ b/engines/avalanche/shootemup.cpp
@@ -138,7 +138,9 @@ byte ShootEmUp::getStockNumber(byte x) {
}
void ShootEmUp::blankIt() {
- warning("STUB: ShootEmUp::blankIt()");
+ for (int i = 0; i < _rectNum; i++)
+ _vm->_graphics->drawFilledRectangle(_rectangles[i], kColorBlack);
+ _rectNum = 0;
}
void ShootEmUp::moveThem() {
diff --git a/engines/avalanche/shootemup.h b/engines/avalanche/shootemup.h
index ce6af73237..383a712c93 100644
--- a/engines/avalanche/shootemup.h
+++ b/engines/avalanche/shootemup.h
@@ -70,6 +70,7 @@ private:
byte _stockStatus[7];
Sprite _sprites[99];
byte _rectNum; // Original: 'rsize'
+ Common::Rect _rectangles[99];
uint16 _avvyWas;
uint16 _avvyPos;
byte _avvyAnim;