[Scummvm-cvs-logs] SF.net SVN: scummvm:[33364] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Jul 28 11:00:01 CEST 2008


Revision: 33364
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33364&view=rev
Author:   peres001
Date:     2008-07-28 09:00:00 +0000 (Mon, 28 Jul 2008)

Log Message:
-----------
Preliminary code for traps.

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

Modified: scummvm/trunk/engines/parallaction/objects.h
===================================================================
--- scummvm/trunk/engines/parallaction/objects.h	2008-07-28 08:56:37 UTC (rev 33363)
+++ scummvm/trunk/engines/parallaction/objects.h	2008-07-28 09:00:00 UTC (rev 33364)
@@ -93,6 +93,7 @@
 	kFlagsYourself		= 0x1000,
 	kFlagsScaled		= 0x2000,
 	kFlagsSelfuse		= 0x4000,
+	kFlagsIsAnimation	= 0x1000000,		// BRA: used in walk code (trap check), to tell is a Zone is an Animation
 	kFlagsAnimLinked	= 0x2000000
 };
 

Modified: scummvm/trunk/engines/parallaction/parser_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parser_ns.cpp	2008-07-28 08:56:37 UTC (rev 33363)
+++ scummvm/trunk/engines/parallaction/parser_ns.cpp	2008-07-28 09:00:00 UTC (rev 33364)
@@ -299,6 +299,7 @@
 	AnimationPtr a(new Animation);
 
 	strncpy(a->_name, name, ZONENAME_LENGTH);
+	a->_flags |= kFlagsIsAnimation;
 
 	list.push_front(AnimationPtr(a));
 


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