aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2013-09-04 21:11:15 +0200
committerStrangerke2013-09-04 21:12:03 +0200
commitc7e78ec6b75a4a5e976de60f5b92c74b0e48ea50 (patch)
treecd8b364d355a5b4160bfe4e049f77ad286d4a3c3 /engines
parent15947cec7ddfad7993b746c796f4f7dd9ff01a0a (diff)
downloadscummvm-rg350-c7e78ec6b75a4a5e976de60f5b92c74b0e48ea50.tar.gz
scummvm-rg350-c7e78ec6b75a4a5e976de60f5b92c74b0e48ea50.tar.bz2
scummvm-rg350-c7e78ec6b75a4a5e976de60f5b92c74b0e48ea50.zip
AVALANCHE: Fix some more GCC warnings
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/lucerna2.cpp3
-rw-r--r--engines/avalanche/scrolls2.cpp18
2 files changed, 10 insertions, 11 deletions
diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp
index 4517e6a258..f31333d990 100644
--- a/engines/avalanche/lucerna2.cpp
+++ b/engines/avalanche/lucerna2.cpp
@@ -211,7 +211,6 @@ void Lucerna::load_also(Common::String n) {
}
void Lucerna::load(byte n) { /* Load2, actually */
- byte bit;
Common::String xx;
CursorMan.showMouse(false);
@@ -245,7 +244,7 @@ void Lucerna::load(byte n) { /* Load2, actually */
load_also(xx);
_vm->_celer->loadBackgroundSprites(n);
- bit = *_vm->_graphics->getPixel(0,0);
+ // byte bit = *_vm->_graphics->getPixel(0,0);
CursorMan.showMouse(true);
}
diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp
index 0df3c78f61..4159a88ba6 100644
--- a/engines/avalanche/scrolls2.cpp
+++ b/engines/avalanche/scrolls2.cpp
@@ -291,9 +291,6 @@ void Scrolls::geticon(int16 x, int16 y, byte which) {
void Scrolls::block_drop(Common::String fn, int16 xl, int16 yl, int16 y) {
Common::File f;
- uint16 st;
-
- st = (y - 1) * 80 + (40 - xl / 2) + ((1 - _vm->_gyro->cp) * _vm->_gyro->pagetop);
Common::String filename;
filename = filename.format("%s.avd", fn.c_str());
@@ -302,7 +299,9 @@ void Scrolls::block_drop(Common::String fn, int16 xl, int16 yl, int16 y) {
return;
}
- /*byte bit;
+#if 0
+ uint16 st = (y - 1) * 80 + (40 - xl / 2) + ((1 - _vm->_gyro->cp) * _vm->_gyro->pagetop);
+ byte bit;
for (uint16 fv = 1; fv <= yl; fv++)
for (bit = 0; bit <= 3; bit++) {
port[0x3c4] = 2;
@@ -311,7 +310,8 @@ void Scrolls::block_drop(Common::String fn, int16 xl, int16 yl, int16 y) {
port[0x3cf] = bit;
blockread(f, mem[0xa000 * st + (fv * 80)], xl);
}
- bit = getpixel(0, 0);*/
+ bit = getpixel(0, 0);
+#endif
warning("STUB: Scrolls::block_drop()");
@@ -319,8 +319,8 @@ void Scrolls::block_drop(Common::String fn, int16 xl, int16 yl, int16 y) {
}
void Scrolls::drawscroll(func2 gotoit) { // This is one of the oldest procs in the game.
- byte b, groi;
- int16 lx, ly, mx, my, ex, ey;
+ byte b;
+ int16 lx, ly, mx, my, ex;
bool centre;
byte icon_indent = 0;
@@ -373,7 +373,7 @@ void Scrolls::drawscroll(func2 gotoit) { // This is one of the oldest procs in t
_vm->_graphics->_scrolls.fillRect(Common::Rect(mx + lx + 15, my - ly, mx + lx + 16, my + ly), red);
ex = mx - lx;
- ey = my - ly;
+// int16 ey = my - ly;
mx -= lx;
my -= ly + 2;
@@ -419,7 +419,7 @@ void Scrolls::drawscroll(func2 gotoit) { // This is one of the oldest procs in t
dix = mx + lx;
diy = my + ly;
_vm->_gyro->scroll[b].setChar(' ', 0);
- groi = *_vm->_graphics->getPixel(0, 0);
+ // byte groi = *_vm->_graphics->getPixel(0, 0);
// inc(diy,14);
_vm->_gyro->shbox(dix - 65, diy - 24, dix - 5, diy - 10, "Yes.");
_vm->_gyro->shbox(dix + 5, diy - 24, dix + 65, diy - 10, "No.");