diff options
Diffstat (limited to 'engines/teenagent/objects.cpp')
-rw-r--r-- | engines/teenagent/objects.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/teenagent/objects.cpp b/engines/teenagent/objects.cpp index 74e3a4944d..748f342d54 100644 --- a/engines/teenagent/objects.cpp +++ b/engines/teenagent/objects.cpp @@ -26,7 +26,7 @@ namespace TeenAgent { -void Rect::load(byte * src) { +void Rect::load(byte *src) { _base = src; Common::MemoryReadStream ins(src, 8); left = ins.readUint16LE(); @@ -52,7 +52,7 @@ void Rect::render(Graphics::Surface *surface, uint8 color) const { } -void Object::load(byte * src) { +void Object::load(byte *src) { _base = src; id = *src++; @@ -85,10 +85,10 @@ void Object::setName(const Common::String &new_name) { void Object::dump(int level) const { debug(level, "object: %u %u [%u,%u,%u,%u], actor: [%u,%u,%u,%u], orientation: %u, name: %s", id, enabled, - rect.left, rect.top, rect.right, rect.bottom, - actor_rect.left, actor_rect.top, actor_rect.right, actor_rect.bottom, - actor_orientation, name.c_str() - ); + rect.left, rect.top, rect.right, rect.bottom, + actor_rect.left, actor_rect.top, actor_rect.right, actor_rect.bottom, + actor_orientation, name.c_str() + ); } Common::String Object::parse_description(const char *name) { @@ -139,16 +139,16 @@ void UseHotspot::load(byte *src) { void UseHotspot::dump(int level) const { debug(level, - "hotspot: inv_id: %02x, obj_id: %02x, orientation?: %02x, actor position: (%d,%d), callback: %04x", - inventory_id, object_id, orientation, actor_x, actor_y, callback - ); + "hotspot: inv_id: %02x, obj_id: %02x, orientation?: %02x, actor position: (%d,%d), callback: %04x", + inventory_id, object_id, orientation, actor_x, actor_y, callback + ); } void Walkbox::dump(int level) const { debug(level, "walkbox %02x %02x [%d, %d, %d, %d] top: %u, right: %u, bottom: %u, left: %u", - type, orientation, - rect.left, rect.top, rect.right, rect.bottom, - side_hint[0], side_hint[1], side_hint[2], side_hint[3]); + type, orientation, + rect.left, rect.top, rect.right, rect.bottom, + side_hint[0], side_hint[1], side_hint[2], side_hint[3]); } void Walkbox::load(byte *src) { @@ -158,7 +158,7 @@ void Walkbox::load(byte *src) { orientation = *src++; rect.load(src); src += 8; - for(byte i = 0; i < 4; ++i) + for (byte i = 0; i < 4; ++i) side_hint[i] = *src++; } |