diff options
author | Johannes Schickel | 2009-05-24 15:17:42 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-24 15:17:42 +0000 |
commit | b3c6751b9b7fc1401fd5e87a034cdaec92b67b20 (patch) | |
tree | aa00dba58fb88ea2e095b886963370c7290c692b /engines/agos/script_pn.cpp | |
parent | 7c1eb057146af11793c627327f3fefe309d27fbb (diff) | |
download | scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.gz scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.tar.bz2 scummvm-rg350-b3c6751b9b7fc1401fd5e87a034cdaec92b67b20.zip |
Strip trailing whitespaces in the whole code base.
svn-id: r40867
Diffstat (limited to 'engines/agos/script_pn.cpp')
-rw-r--r-- | engines/agos/script_pn.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/agos/script_pn.cpp b/engines/agos/script_pn.cpp index 2dbd4e52fb..62ca94e387 100644 --- a/engines/agos/script_pn.cpp +++ b/engines/agos/script_pn.cpp @@ -147,7 +147,7 @@ void AGOSEngine_PN::opn_opcode01() { int32 sp = varval() + varval(); _variableArray[12] = sp % 65536; _variableArray[13] = sp / 65536; - if (sp > 65535) + if (sp > 65535) sp=65535; writeval(str, (int)sp); setScriptReturn(true); @@ -329,7 +329,7 @@ void AGOSEngine_PN::opn_opcode25() { void AGOSEngine_PN::opn_opcode26() { while ((_stackbase->classnum != -1) && (_stackbase != NULL)) junkstack(); - dumpstack(); + dumpstack(); setScriptReturn(true); } @@ -371,10 +371,10 @@ void AGOSEngine_PN::opn_opcode31() { slot = matchSaveGame(_saveFile, countSaveGames()); strcpy(bf, genSaveName(slot)); break; - case 1: + case 1: strcpy(bf, "test.sav"); break; - case 2: + case 2: // NOTE: Is this case ever used? error("opn_opcode31: case 2"); break; @@ -776,7 +776,7 @@ void AGOSEngine_PN::writeval(uint8 *ptr, int val) { _workptr = ptr; _linct = 255; - if ((a = readfromline()) < 247) + if ((a = readfromline()) < 247) error("writeval: Write to constant (%d)", a); switch (a) { @@ -836,7 +836,7 @@ int AGOSEngine_PN::actCallD(int n) { funcentry(pf, n); addstack(-1); funccpy(pf); - setposition(n, 0); + setposition(n, 0); return(doline(1)); } @@ -1065,7 +1065,7 @@ void AGOSEngine_PN::dumpstack() { if (_stackbase == NULL) error("dumpstack: Stack underflow or unknown longjmp"); - a = _stackbase->nextframe; + a = _stackbase->nextframe; free((char *)_stackbase); _stackbase = a; } @@ -1076,7 +1076,7 @@ void AGOSEngine_PN::junkstack() { if (_stackbase == NULL) error("junkstack: Stack underflow or unknown longjmp"); - a = _stackbase->nextframe; + a = _stackbase->nextframe; if (_stackbase->classnum == -1) free((char *)_stackbase->savearea); free((char *)_stackbase); @@ -1100,7 +1100,7 @@ void AGOSEngine_PN::popstack(int type) { b = 0; while (a < 6) _variableArray[b++] = _stackbase->flag[a++]; - b = 24; + b = 24; a = 0; while (a < 8) _variableArray[b++] = _stackbase->param[a++]; |