Skip to content

Commit

Permalink
FULLPIPE: Implement lift_hoverButton(). This completes the lift.
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 1, 2014
1 parent 3b1f609 commit b518258
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion engines/fullpipe/fullpipe.h
Expand Up @@ -290,7 +290,7 @@ class FullpipeEngine : public ::Engine {
void lift_goAnimation();
void lift_animateButton(StaticANIObject *button);
void lift_startExitQueue();
void lift_sub05(ExCommand *ex);
void lift_hoverButton(ExCommand *ex);
bool lift_checkButton(const char *varname);
void lift_openLift();

Expand Down
9 changes: 7 additions & 2 deletions engines/fullpipe/lift.cpp
Expand Up @@ -479,8 +479,13 @@ void FullpipeEngine::lift_startExitQueue() {
mq->chain(0);
}

void FullpipeEngine::lift_sub05(ExCommand *ex) {
warning("STUB: FullpipeEngine::lift_sub05()");
void FullpipeEngine::lift_hoverButton(ExCommand *cmd) {
if (_lastLiftButton) {
if (!(cmd->_keyCode & 2) || _liftX != cmd->_x || _liftY != cmd->_y) {
_lastLiftButton->_statics = _lastLiftButton->getStaticsById(lift_getButtonIdN(_lastLiftButton->_statics->_staticsId));
_lastLiftButton = 0;
}
}
}

bool FullpipeEngine::lift_checkButton(const char *varName) {
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene03.cpp
Expand Up @@ -239,7 +239,7 @@ int sceneHandler03(ExCommand *ex) {
break;

case 64:
g_fp->lift_sub05(ex);
g_fp->lift_hoverButton(ex);
break;

case 29:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene06.cpp
Expand Up @@ -622,7 +622,7 @@ int sceneHandler06(ExCommand *ex) {
break;

case 64:
g_fp->lift_sub05(ex);
g_fp->lift_hoverButton(ex);
break;

case MSG_SC6_TAKEBALL:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene10.cpp
Expand Up @@ -170,7 +170,7 @@ int sceneHandler10(ExCommand *ex) {
break;

case 64:
g_fp->lift_sub05(ex);
g_fp->lift_hoverButton(ex);
break;

case 29:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene14.cpp
Expand Up @@ -749,7 +749,7 @@ int sceneHandler14(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case 33:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene15.cpp
Expand Up @@ -156,7 +156,7 @@ int sceneHandler15(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case 29:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene30.cpp
Expand Up @@ -111,7 +111,7 @@ int sceneHandler30(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case MSG_LIFT_GO:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene32.cpp
Expand Up @@ -339,7 +339,7 @@ int sceneHandler32(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case MSG_SC6_INSTHANDLE:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene34.cpp
Expand Up @@ -392,7 +392,7 @@ int sceneHandler34(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case MSG_LIFT_GO:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene35.cpp
Expand Up @@ -199,7 +199,7 @@ int sceneHandler35(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case 29:
Expand Down
2 changes: 1 addition & 1 deletion engines/fullpipe/scenes/scene38.cpp
Expand Up @@ -368,7 +368,7 @@ int sceneHandler38(ExCommand *cmd) {
break;

case 64:
g_fp->lift_sub05(cmd);
g_fp->lift_hoverButton(cmd);
break;

case 29:
Expand Down

0 comments on commit b518258

Please sign in to comment.