[Scummvm-cvs-logs] SF.net SVN: scummvm:[48713] scummvm/branches/branch-1-1-0/engines/lure/ res_struct.h
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Mon Apr 19 11:55:54 CEST 2010
Revision: 48713
http://scummvm.svn.sourceforge.net/scummvm/?rev=48713&view=rev
Author: dreammaster
Date: 2010-04-19 09:55:54 +0000 (Mon, 19 Apr 2010)
Log Message:
-----------
Added new bottom() function needed for follower fix
Modified Paths:
--------------
scummvm/branches/branch-1-1-0/engines/lure/res_struct.h
Modified: scummvm/branches/branch-1-1-0/engines/lure/res_struct.h
===================================================================
--- scummvm/branches/branch-1-1-0/engines/lure/res_struct.h 2010-04-19 09:52:11 UTC (rev 48712)
+++ scummvm/branches/branch-1-1-0/engines/lure/res_struct.h 2010-04-19 09:55:54 UTC (rev 48713)
@@ -467,6 +467,11 @@
bool isEmpty() { return _actions.begin() == _actions.end(); }
void clear() { _actions.clear(); }
CurrentActionEntry &top() { return **_actions.begin(); }
+ CurrentActionEntry &bottom() {
+ ActionsList::iterator i = _actions.end();
+ --i;
+ return **i;
+ }
CurrentAction action() { return isEmpty() ? NO_ACTION : top().action(); }
void pop() { _actions.erase(_actions.begin()); }
int size() { return _actions.size(); }
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