aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorMax Horn2009-01-29 05:26:12 +0000
committerMax Horn2009-01-29 05:26:12 +0000
commitac59693be26b4239aaaf380896a1e1b753172546 (patch)
treeb64a9b664917ed86e78e90560b034f0b1ee49054 /engines/cine
parenta0a82d911c77b63f2069dbc39ab26394fe4d377d (diff)
downloadscummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.tar.gz
scummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.tar.bz2
scummvm-rg350-ac59693be26b4239aaaf380896a1e1b753172546.zip
A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/anim.cpp2
-rw-r--r--engines/cine/script_fw.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp
index 11ea4ea25c..049f22e7cf 100644
--- a/engines/cine/anim.cpp
+++ b/engines/cine/anim.cpp
@@ -208,7 +208,7 @@ AnimData::AnimData(const AnimData &src) : _width(src._width),
memcpy(_data, src._data, _size*sizeof(byte));
}
- if(src._mask) {
+ if (src._mask) {
_mask = new byte[_size];
assert(_mask);
memcpy(_mask, src._mask, _size*sizeof(byte));
diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp
index f594596e6d..e90dd6f151 100644
--- a/engines/cine/script_fw.cpp
+++ b/engines/cine/script_fw.cpp
@@ -428,7 +428,8 @@ int RawScript::getNextLabel(const FWScriptInfo &info, int offset) const {
case 'l': // label
return pos;
case 's': // string
- while (_data[pos++] != 0);
+ while (_data[pos++] != 0)
+ ;
break;
case 'x': // exit script
return -pos-1;