From fc3ae4c9b955f6b7e702993f38c25f61d49b593c Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Mon, 22 Jul 2019 10:47:06 +0200 Subject: SUPERNOVA: Fix most of Codacy issues * Fix mismatched delete in create_image.cpp * Add shebangs to create_ms2_data.***.sh * Reduce scopes of some variables * Substitute bitwise and for logical and in GamaManager2::passageConstruction --- engines/supernova/supernova1/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/supernova/supernova1') diff --git a/engines/supernova/supernova1/state.cpp b/engines/supernova/supernova1/state.cpp index ee1fe46aa0..8130b2bb5a 100644 --- a/engines/supernova/supernova1/state.cpp +++ b/engines/supernova/supernova1/state.cpp @@ -1040,8 +1040,8 @@ void GameManager1::shock() { void GameManager1::drawMapExits() { _vm->renderBox(281, 161, 39, 39, kColorWhite25); - int idx; for (int i = 0; i < 25; i++) { + int idx; if ((idx = _exitList[i]) != -1) { byte r = _currentRoom->getObject(idx)->_direction; int x = 284 + 7 * (r % 5); -- cgit v1.2.3