aboutsummaryrefslogtreecommitdiff
path: root/sword1/resman.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-07-30 21:11:48 +0000
committerEugene Sandulenko2005-07-30 21:11:48 +0000
commit6b4484472b79dc7ea7d1ce545a28fba7d3b7696f (patch)
treec44c4e61f18ddd537f7082cb48869cf33d422fbd /sword1/resman.cpp
parent86ab70b149e5cd00cf54f2e41896e2c4e16795e4 (diff)
downloadscummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.gz
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.bz2
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.zip
Remove trailing whitespaces.
svn-id: r18604
Diffstat (limited to 'sword1/resman.cpp')
-rw-r--r--sword1/resman.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sword1/resman.cpp b/sword1/resman.cpp
index 5a1b4683b7..f67189d7bf 100644
--- a/sword1/resman.cpp
+++ b/sword1/resman.cpp
@@ -88,7 +88,7 @@ void ResMan::loadCluDescript(const char *fileName) {
guiFatalError(msg);
}
-
+
_prj.noClu = file.readUint32LE();
_prj.clu = new Clu[_prj.noClu];
memset(_prj.clu, 0, _prj.noClu * sizeof(Clu));
@@ -137,14 +137,14 @@ void ResMan::loadCluDescript(const char *fileName) {
free(grpIndex);
}
free(cluIndex);
-
+
if (_prj.clu[3].grp[5].noRes == 29)
for (uint8 cnt = 0; cnt < 29; cnt++)
_srIdList[cnt] = 0x04050000 | cnt;
}
void ResMan::freeCluDescript(void) {
-
+
for (uint32 clusCnt = 0; clusCnt < _prj.noClu; clusCnt++) {
Clu *cluster = _prj.clu + clusCnt;
for (uint32 grpCnt = 0; grpCnt < cluster->noGrp; grpCnt++) {
@@ -271,7 +271,7 @@ void ResMan::resOpen(uint32 id) { // load resource ID into memory
void ResMan::resClose(uint32 id) {
MemHandle *handle = resHandle(id);
if (!handle->refCount) {
- warning("Resource Manager fail: unlocking object with refCount 0. Id: %d\n", id);
+ warning("Resource Manager fail: unlocking object with refCount 0. Id: %d\n", id);
} else {
handle->refCount--;
if (!handle->refCount)
@@ -312,7 +312,7 @@ Common::File *ResMan::resFile(uint32 id) {
assert(_openCluStart);
Clu *closeClu = _openCluStart;
_openCluStart = _openCluStart->nextOpen;
-
+
closeClu->file->close();
delete closeClu->file;
closeClu->file = NULL;