[Scummvm-cvs-logs] SF.net SVN: scummvm:[46228] scummvm/trunk/engines/teenagent

megath at users.sourceforge.net megath at users.sourceforge.net
Tue Dec 1 09:03:23 CET 2009


Revision: 46228
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46228&view=rev
Author:   megath
Date:     2009-12-01 08:03:23 +0000 (Tue, 01 Dec 2009)

Log Message:
-----------
find out the meaning of the rest 4 bytes in walkbox structure

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/objects.cpp
    scummvm/trunk/engines/teenagent/objects.h

Modified: scummvm/trunk/engines/teenagent/objects.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/objects.cpp	2009-12-01 08:00:13 UTC (rev 46227)
+++ scummvm/trunk/engines/teenagent/objects.cpp	2009-12-01 08:03:23 UTC (rev 46228)
@@ -148,10 +148,10 @@
 }
 
 void Walkbox::dump() const {
-	debug(0, "walkbox %02x %02x [%d, %d, %d, %d] %02x %02x %02x %02x  ",
+	debug(0, "walkbox %02x %02x [%d, %d, %d, %d] top: %u, right: %u, bottom: %u, left: %u",
 		type, orientation,
 		rect.left, rect.right, rect.top, rect.bottom,
-		unk0a, unk0b, unk0c, unk0d);
+		top_side_hint, right_side_hint, bottom_side_hint, left_side_hint);
 }
 
 void Walkbox::load(byte *src) {
@@ -161,10 +161,10 @@
 	orientation = *src++;
 	rect.load(src);
 	src += 8;
-	unk0a = *src++;
-	unk0b = *src++;
-	unk0c = *src++;
-	unk0d = *src++;
+	top_side_hint = *src++;
+	right_side_hint = *src++;
+	bottom_side_hint = *src++;
+	left_side_hint = *src++;
 }
 
 void Walkbox::save() const {

Modified: scummvm/trunk/engines/teenagent/objects.h
===================================================================
--- scummvm/trunk/engines/teenagent/objects.h	2009-12-01 08:00:13 UTC (rev 46227)
+++ scummvm/trunk/engines/teenagent/objects.h	2009-12-01 08:03:23 UTC (rev 46228)
@@ -146,10 +146,10 @@
 	byte type;
 	byte orientation;
 	Rect rect;
-	byte unk0a;
-	byte unk0b;
-	byte unk0c;
-	byte unk0d;
+	byte top_side_hint;
+	byte right_side_hint;
+	byte bottom_side_hint;
+	byte left_side_hint;
 
 	Walkbox() : _base(NULL) {}
 	void dump() const;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list