[Scummvm-cvs-logs] scummvm master -> 1d33c421b1847c577f2e0a0e69345e620242a4ab

sev- sev at scummvm.org
Thu Jan 30 19:31:13 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1d33c421b1 FULLPIPE: Implement lift_checkButton()


Commit: 1d33c421b1847c577f2e0a0e69345e620242a4ab
    https://github.com/scummvm/scummvm/commit/1d33c421b1847c577f2e0a0e69345e620242a4ab
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-01-30T10:30:39-08:00

Commit Message:
FULLPIPE: Implement lift_checkButton()

Changed paths:
    engines/fullpipe/lift.cpp



diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp
index a2918c0..95cbaeb 100644
--- a/engines/fullpipe/lift.cpp
+++ b/engines/fullpipe/lift.cpp
@@ -352,8 +352,11 @@ void FullpipeEngine::lift_sub05(ExCommand *ex) {
 	warning("STUB: FullpipeEngine::lift_sub05()");
 }
 
-bool FullpipeEngine::lift_checkButton(const char *varname) {
-	warning("STUB: FullpipeEngine::lift_checkButton(%s)", varname);
+bool FullpipeEngine::lift_checkButton(const char *varName) {
+	GameVar *var = g_fp->getGameLoaderGameVar()->getSubVarByName("OBJSTATES")->getSubVarByName(sO_LiftButtons);
+
+	if (var)
+		return lift_getButtonIdP(var->getSubVarByName(varName)->_value.intValue) > 0;
 
 	return false;
 }






More information about the Scummvm-git-logs mailing list