diff options
-rw-r--r-- | saga/script.h | 26 | ||||
-rw-r--r-- | saga/sthread.cpp | 10 |
2 files changed, 18 insertions, 18 deletions
diff --git a/saga/script.h b/saga/script.h index 7188196bb7..7ab7fa3d99 100644 --- a/saga/script.h +++ b/saga/script.h @@ -233,19 +233,19 @@ public: public: byte *baseAddress(byte addrMode) { - switch(addrMode) { - case kAddressCommon: - return _commonBase; - case kAddressStatic: - return _staticBase; - case kAddressModule: - return _moduleBase; - case kAddressStack: - return (byte*)&_stackBuf[_frameIndex]; - case kAddressThread: - return (byte*)_threadVars; - default: - return _commonBase; + switch (addrMode) { + case kAddressCommon: + return _commonBase; + case kAddressStatic: + return _staticBase; + case kAddressModule: + return _moduleBase; + case kAddressStack: + return (byte*)&_stackBuf[_frameIndex]; + case kAddressThread: + return (byte*)_threadVars; + default: + return _commonBase; } } diff --git a/saga/sthread.cpp b/saga/sthread.cpp index d4be516628..3e89df19d4 100644 --- a/saga/sthread.cpp +++ b/saga/sthread.cpp @@ -517,7 +517,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) { iparam2 = (long)param2; iparam1 = (long)param1; iresult = iparam1 + iparam2; - thread->push( iresult); + thread->push(iresult); break; // (SUB): Subtraction case 0x2D: @@ -526,7 +526,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) { iparam2 = (long)param2; iparam1 = (long)param1; iresult = iparam1 - iparam2; - thread->push( iresult); + thread->push(iresult); break; // (MULT): Integer multiplication case 0x2E: @@ -535,7 +535,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) { iparam2 = (long)param2; iparam1 = (long)param1; iresult = iparam1 * iparam2; - thread->push( iresult); + thread->push(iresult); break; // (DIV): Integer division case 0x2F: @@ -544,7 +544,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) { iparam2 = (long)param2; iparam1 = (long)param1; iresult = iparam1 / iparam2; - thread->push( iresult); + thread->push(iresult); break; // (MOD) Modulus case 0x30: @@ -553,7 +553,7 @@ void Script::runThread(ScriptThread *thread, uint instructionLimit) { iparam2 = (long)param2; iparam1 = (long)param1; iresult = iparam1 % iparam2; - thread->push( iresult); + thread->push(iresult); break; // (EQU) Test equality case 0x33: |