diff options
author | Thanasis Antoniou | 2019-06-28 15:30:05 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-06-28 15:30:44 +0300 |
commit | a81e3add2f08692030607c8cde7965475793b86b (patch) | |
tree | c7a897ded452d141d110dfb7d0e6d5e1ebf3176f /engines/bladerunner/debugger.cpp | |
parent | bd75898894e0f65663b1bc93c73d4ce0c7a91482 (diff) | |
download | scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.gz scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.bz2 scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.zip |
BLADERUNNER: JANITORIAL: Code formatting fixes
Diffstat (limited to 'engines/bladerunner/debugger.cpp')
-rw-r--r-- | engines/bladerunner/debugger.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp index f22f924321..e497de3d6d 100644 --- a/engines/bladerunner/debugger.cpp +++ b/engines/bladerunner/debugger.cpp @@ -140,7 +140,7 @@ Debugger::Debugger(BladeRunnerEngine *vm) : GUI::Debugger() { } Debugger::~Debugger() { - if(!_specificDrawnObjectsList.empty()) { + if (!_specificDrawnObjectsList.empty()) { _specificDrawnObjectsList.clear(); } } @@ -379,7 +379,7 @@ bool Debugger::cmdDraw(int argc, const char **argv) { debugPrintf("Drawing Z buffer = %s\n", _viewZBuffer? "true" : "false"); } else if (arg == "reset") { - if(!_specificDrawnObjectsList.empty()) { + if (!_specificDrawnObjectsList.empty()) { _specificDrawnObjectsList.clear(); } @@ -1203,7 +1203,7 @@ bool Debugger::cmdOverlay(int argc, const char **argv) { if ( (overlaysList[itemIter].resourceId == chapterIdOverlaysAvailableInt) || ( modeMixOverlaysAvailableFlg && overlaysList[itemIter].resourceId == 6) ) { - if (strcmp(overlaysList[itemIter].name, overlayName.c_str()) == 0){ + if (strcmp(overlaysList[itemIter].name, overlayName.c_str()) == 0) { break; } } @@ -1218,7 +1218,7 @@ bool Debugger::cmdOverlay(int argc, const char **argv) { // Attempt to load the overlay in an empty slot // even if it's not already loaded for the scene (in _vm->_overlays->_videos) int overlayVideoIdx = _vm->_overlays->play(overlayName, overlayAnimationId, loopForever, startNowFlag, 0); - if( overlayVideoIdx == -1 ) { + if ( overlayVideoIdx == -1 ) { debugPrintf("Could not load the overlay animation: %s in this scene. Try reseting overlays first to free up slots!\n", overlayName.c_str()); } else { debugPrintf("Loading overlay animation: %s...\n", overlayName.c_str()); @@ -1464,7 +1464,7 @@ bool Debugger::cmdObject(int argc, const char **argv) { Vector3 positionBottomRight(atof(argv[3]), atof(argv[4]), atof(argv[5])); Vector3 positionTopLeft(atof(argv[6]), atof(argv[7]), atof(argv[8])); _vm->_scene->_set->_objects[objectId].bbox.setXYZ(positionBottomRight.x, positionBottomRight.y, positionBottomRight.z, positionTopLeft.x, positionTopLeft.y, positionTopLeft.z); - if (!_vm->_sceneIsLoading && _vm->_sceneObjects->remove(objectId + kSceneObjectOffsetObjects)){ + if (!_vm->_sceneIsLoading && _vm->_sceneObjects->remove(objectId + kSceneObjectOffsetObjects)) { _vm->_sceneObjects->addObject(objectId + kSceneObjectOffsetObjects, _vm->_scene->_set->_objects[objectId].bbox, _vm->_scene->_set->_objects[objectId].isClickable, @@ -1676,7 +1676,7 @@ bool Debugger::cmdRegion(int argc, const char **argv) { debugPrintf("A region id has to be an integer within [0, 9]\n"); return true; } - if (modeName == "add" && ((regionTypeName == "reg" && argc == 8) || (regionTypeName == "exit" && argc == 9)) ){ + if (modeName == "add" && ((regionTypeName == "reg" && argc == 8) || (regionTypeName == "exit" && argc == 9)) ) { // add region mode if (!regions->_regions[regionID].present) { int type = 0; @@ -2061,7 +2061,7 @@ bool Debugger::cmdList(int argc, const char **argv) { int count = 0; for (int i = 0; i < _vm->_waypoints->_count; i++) { Waypoints::Waypoint *waypoint = &_vm->_waypoints->_waypoints[i]; - if(waypoint->setId != _vm->_scene->getSetId()) { + if (waypoint->setId != _vm->_scene->getSetId()) { continue; } char waypointText[40]; @@ -2358,7 +2358,7 @@ void Debugger::drawWaypoints() { //draw world waypoints for (int i = 0; i < _vm->_waypoints->_count; i++) { Waypoints::Waypoint *waypoint = &_vm->_waypoints->_waypoints[i]; - if(waypoint->setId != _vm->_scene->getSetId()) { + if (waypoint->setId != _vm->_scene->getSetId()) { continue; } if (_viewWaypointsNormalToggle @@ -2506,7 +2506,7 @@ int Debugger::findInDbgDrawList(DebuggerDrawnObjectType drObjType, int drObjId, && (drObjId == -1 || drObjId == _specificDrawnObjectsList[i].objId) && (drObjSetId == -1 || _specificDrawnObjectsList[i].setId == -1 || drObjSetId == _specificDrawnObjectsList[i].setId) && (drObjSceneId == -1 || _specificDrawnObjectsList[i].sceneId == -1 || drObjSceneId == _specificDrawnObjectsList[i].sceneId) - ){ + ) { // TODO for actors, 3d objects, items and waypoints it's probably preferable to ignore the sceneId (?) return i; } |