[Scummvm-cvs-logs] SF.net SVN: scummvm:[39067] scummvm/trunk/engines/parallaction/walk.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Mon Mar 2 10:16:03 CET 2009
Revision: 39067
http://scummvm.svn.sourceforge.net/scummvm/?rev=39067&view=rev
Author: peres001
Date: 2009-03-02 09:16:03 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
Enabled walking delay for follower animation.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/walk.cpp
Modified: scummvm/trunk/engines/parallaction/walk.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/walk.cpp 2009-03-02 09:14:36 UTC (rev 39066)
+++ scummvm/trunk/engines/parallaction/walk.cpp 2009-03-02 09:16:03 UTC (rev 39067)
@@ -422,6 +422,7 @@
_character._a = a;
_character._first = true;
_character._fieldC = 1;
+ _character._walkDelay = 0;
buildPath(_character, x, y);
_character._active = true;
}
@@ -585,20 +586,17 @@
debugC(3, kDebugWalk, "PathWalker_BR::doWalk(%s)", s._a->_name);
-#if 0
- // TODO: support delays in walking. This requires extending Input::walkIo().
- if (ch._walkDelay > 0) {
- ch._walkDelay--;
- if (ch._walkDelay == 0 && _ch._ani->_scriptName) {
+ if (s._walkDelay > 0) {
+ s._walkDelay--;
+ if (s._walkDelay == 0 && s._a->_scriptName) {
// stop script and reset
- _ch._ani->_flags &= ~kFlagsActing;
- Script *script = findScript(_ch._ani->_scriptName);
- script->_nextCommand = script->firstCommand;
+ s._a->_flags &= ~kFlagsActing;
+// _vm->_programExec->resetProgram(s._a->_scriptName);
}
return;
}
-#endif
+
if (s._fieldC == 0) {
s._walkPath.erase(s._walkPath.begin());
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