diff options
author | Strangerke | 2013-09-15 10:50:43 +0200 |
---|---|---|
committer | Strangerke | 2013-09-15 10:51:24 +0200 |
commit | f7ee139501403e4f55d1a6fcbe5c421d3317cfa1 (patch) | |
tree | 1c3212f878bf3d53951e65a6146ee65705c89f14 /engines/avalanche/avalot.cpp | |
parent | 010d9f854e46ffbcb9b138e3dacffe9df25a116c (diff) | |
download | scummvm-rg350-f7ee139501403e4f55d1a6fcbe5c421d3317cfa1.tar.gz scummvm-rg350-f7ee139501403e4f55d1a6fcbe5c421d3317cfa1.tar.bz2 scummvm-rg350-f7ee139501403e4f55d1a6fcbe5c421d3317cfa1.zip |
AVALANCHE: Reduce verbosity some more
Diffstat (limited to 'engines/avalanche/avalot.cpp')
-rw-r--r-- | engines/avalanche/avalot.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp index 796ab800f5..fe5d4d040d 100644 --- a/engines/avalanche/avalot.cpp +++ b/engines/avalanche/avalot.cpp @@ -201,12 +201,15 @@ void Avalot::run(Common::String arg) { #ifdef DEBUG // ONLY FOR TESTING!!! - for (byte i = 0; i < _vm->_gyro->_lineNum; i++) - _vm->_graphics->_surface.drawLine(_vm->_gyro->_lines[i]._x1, _vm->_gyro->_lines[i]._y1, _vm->_gyro->_lines[i]._x2, _vm->_gyro->_lines[i]._y2, _vm->_gyro->_lines[i].col); + for (byte i = 0; i < _vm->_gyro->_lineNum; i++) { + LineType *curLine = &_vm->_gyro->_lines[i]; + _vm->_graphics->_surface.drawLine(curLine->_x1, curLine->_y1, curLine->_x2, curLine->_y2, curLine->col); + } for (byte i = 0; i < _vm->_gyro->_fieldNum; i++) { - if (_vm->_gyro->_fields[i]._x1 < 640) - _vm->_graphics->_surface.frameRect(Common::Rect(_vm->_gyro->_fields[i]._x1, _vm->_gyro->_fields[i]._y1, _vm->_gyro->_fields[i]._x2, _vm->_gyro->_fields[i]._y2), kColorLightmagenta); + FieldType *curField = &_vm->_gyro->_fields[i]; + if (curField->_x1 < 640) + _vm->_graphics->_surface.frameRect(Common::Rect(curField->_x1, curField->_y1, curField->_x2, curField->_y2), kColorLightmagenta); } // ONLY FOR TESTING!!! #endif |