From 919013d7f2f130d528d32c2879b19761292e1197 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 1 May 2018 09:51:29 +0200 Subject: JANITORIAL: Fix formatting --- engines/prince/prince.cpp | 3 +-- engines/prince/script.cpp | 9 +++------ 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'engines/prince') diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 016428935c..6cca0b9fb3 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -464,8 +464,7 @@ void PrinceEngine::pauseEngineIntern(bool pause) { Engine::pauseEngineIntern(pause); if (pause) { _midiPlayer->pause(); - } - else { + } else { _midiPlayer->resume(); } } diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 23ef24a268..7d8f8344b5 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -916,8 +916,7 @@ void Interpreter::O_ADDFLAG() { _flags->setFlagValue(flagId, _flags->getFlagValue(flagId) + value); if (_flags->getFlagValue(flagId)) { _result = 1; - } - else { + } else { _result = 0; } debugInterpreter("O_ADDFLAG flagId %04x (%s), value %d", flagId, Flags::getFlagName(flagId), value); @@ -936,8 +935,7 @@ void Interpreter::O_SUBFLAG() { _flags->setFlagValue(flagId, _flags->getFlagValue(flagId) - value); if (_flags->getFlagValue(flagId)) { _result = 1; - } - else { + } else { _result = 0; } debugInterpreter("O_SUBFLAG flagId %d, value %d", flagId, value); @@ -949,8 +947,7 @@ void Interpreter::O_SETSTRING() { if (offset >= 80000) { _string = _vm->_variaTxt->getString(offset - 80000); debugInterpreter("GetVaria %s", _string); - } - else if (offset < 2000) { + } else if (offset < 2000) { _vm->_dialogData = &_vm->_dialogDat[offset * 4 - 4]; uint32 of = READ_LE_UINT32(_vm->_talkTxt + offset * 4); const char *txt = (const char *)&_vm->_talkTxt[of]; -- cgit v1.2.3