diff options
author | Eugene Sandulenko | 2018-06-20 13:58:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | c3e1157d18022795f23b37a876ae51e31c38adba (patch) | |
tree | cafefec29b7db1e84511a17426432b602a68f4e5 /engines/pink/file.cpp | |
parent | 5142ed203c241386b620237d7fd8814d9273dac2 (diff) | |
download | scummvm-rg350-c3e1157d18022795f23b37a876ae51e31c38adba.tar.gz scummvm-rg350-c3e1157d18022795f23b37a876ae51e31c38adba.tar.bz2 scummvm-rg350-c3e1157d18022795f23b37a876ae51e31c38adba.zip |
PINK: JANITORIAL: More formatting fixes
Diffstat (limited to 'engines/pink/file.cpp')
-rw-r--r-- | engines/pink/file.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/pink/file.cpp b/engines/pink/file.cpp index 34a7218642..c0a24c10b4 100644 --- a/engines/pink/file.cpp +++ b/engines/pink/file.cpp @@ -28,7 +28,7 @@ void ObjectDescription::load(Common::File &file) { file.read(name, sizeof(name)); objectsOffset = file.readUint32LE(); - /*objectsCount*/ file.readUint32LE(); + /* objectsCount = */ file.readUint32LE(); resourcesOffset = file.readUint32LE(); resourcesCount = file.readUint32LE(); } @@ -80,7 +80,7 @@ bool OrbFile::open(const Common::String &name) { void OrbFile::loadGame(PinkEngine *game) { seekToObject(kPinkGame); Archive archive(this); - archive.mapObject(reinterpret_cast<Object*>(game)); // hack + archive.mapObject(reinterpret_cast<Object *>(game)); // hack game->load(archive); } @@ -97,11 +97,11 @@ void OrbFile::loadObject(Object *obj, ObjectDescription *objDesc) { } static int objDescComp(const void *a, const void *b) { - return scumm_stricmp((char *) a, (char *) b); + return scumm_stricmp((char *)a, (char *)b); } ObjectDescription *OrbFile::getObjDesc(const char *name) { - ObjectDescription *desc = (ObjectDescription*) bsearch(name, _table, _tableSize, sizeof(ObjectDescription), objDescComp); + ObjectDescription *desc = (ObjectDescription *)bsearch(name, _table, _tableSize, sizeof(ObjectDescription), objDescComp); assert(desc != nullptr); return desc; } |