diff options
author | Max Horn | 2009-09-30 16:16:53 +0000 |
---|---|---|
committer | Max Horn | 2009-09-30 16:16:53 +0000 |
commit | 8ba75fc522f16844524dd4d6f88c3851e2402969 (patch) | |
tree | df25c20389e3e706d508f37914dedc73c6479f00 /engines/teenagent | |
parent | 25dde91c7c6c7da52636e3daa34bd9eee5d9dcb9 (diff) | |
download | scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.gz scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.bz2 scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.zip |
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/callbacks.cpp | 2 | ||||
-rw-r--r-- | engines/teenagent/inventory.cpp | 2 | ||||
-rw-r--r-- | engines/teenagent/scene.cpp | 4 | ||||
-rw-r--r-- | engines/teenagent/teenagent.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/engines/teenagent/callbacks.cpp b/engines/teenagent/callbacks.cpp index bee079cda7..d21e5b4eee 100644 --- a/engines/teenagent/callbacks.cpp +++ b/engines/teenagent/callbacks.cpp @@ -186,7 +186,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { displayMessage(0x57b2); return true; } else { - for(byte i = 11; i <= 27; i += 4) + for (byte i = 11; i <= 27; i += 4) playSound(76, i); playSound(56, 35); diff --git a/engines/teenagent/inventory.cpp b/engines/teenagent/inventory.cpp index d8d40f64d3..91de759bec 100644 --- a/engines/teenagent/inventory.cpp +++ b/engines/teenagent/inventory.cpp @@ -50,7 +50,7 @@ void Inventory::init(TeenAgentEngine *engine) { offset[i] = items->readUint16LE(); } - for(byte i = 0; i < 92; ++i) { + for (byte i = 0; i < 92; ++i) { InventoryObject io; uint16 obj_addr = res->dseg.get_word(0xc4a4 + i * 2); if (obj_addr != 0) diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 196283159d..4f21fb774c 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -116,7 +116,7 @@ void Scene::init(TeenAgentEngine *engine, OSystem *system) { objects.resize(42); walkboxes.resize(42); - for(byte i = 0; i < 42; ++i) { + for (byte i = 0; i < 42; ++i) { Common::Array<Object> &scene_objects = objects[i]; scene_objects.clear(); @@ -151,7 +151,7 @@ Object *Scene::findObject(const Common::Point &point) { Common::Array<Object> &scene_objects = objects[_id - 1]; - for(uint i = 0; i < scene_objects.size(); ++i) { + for (uint i = 0; i < scene_objects.size(); ++i) { Object &obj = scene_objects[i]; if (obj.enabled != 0 && obj.rect.in(point)) return &obj; diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 53d214950e..a1176e04ef 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -134,10 +134,10 @@ void TeenAgentEngine::init() { Resources * res = Resources::instance(); use_hotspots.resize(42); byte *scene_hotspots = res->dseg.ptr(0xbb87); - for(byte i = 0; i < 42; ++i) { + for (byte i = 0; i < 42; ++i) { Common::Array<UseHotspot> & hotspots = use_hotspots[i]; byte * hotspots_ptr = res->dseg.ptr(READ_LE_UINT16(scene_hotspots + i * 2)); - while(*hotspots_ptr) { + while (*hotspots_ptr) { UseHotspot h; h.load(hotspots_ptr); hotspots_ptr += 9; |