aboutsummaryrefslogtreecommitdiff
path: root/engines/prince
diff options
context:
space:
mode:
authorEugene Sandulenko2018-05-01 09:51:29 +0200
committerEugene Sandulenko2018-05-05 23:17:34 +0200
commit919013d7f2f130d528d32c2879b19761292e1197 (patch)
tree85e17d64e138afdcc76666b013a0f2930e2a61f2 /engines/prince
parent856b6a08f1010b6df8ec7cdcd2ad0c8fa21370b9 (diff)
downloadscummvm-rg350-919013d7f2f130d528d32c2879b19761292e1197.tar.gz
scummvm-rg350-919013d7f2f130d528d32c2879b19761292e1197.tar.bz2
scummvm-rg350-919013d7f2f130d528d32c2879b19761292e1197.zip
JANITORIAL: Fix formatting
Diffstat (limited to 'engines/prince')
-rw-r--r--engines/prince/prince.cpp3
-rw-r--r--engines/prince/script.cpp9
2 files changed, 4 insertions, 8 deletions
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];