Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler23_testCalendar()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 4, 2014
1 parent e801071 commit fe5454d
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions engines/fullpipe/scenes/scene23.cpp
Expand Up @@ -37,9 +37,29 @@
namespace Fullpipe {

bool sceneHandler23_testCalendar() {
warning("STUB: sceneHandler23_testCalendar()");
int cal0, cal1, cal2, cal3;

return false;
if (g_vars->scene23_calend0->_movement)
cal0 = g_vars->scene23_calend0->_movement->_staticsObj2->_staticsId;
else
cal0 = g_vars->scene23_calend0->_statics->_staticsId;

if (g_vars->scene23_calend1->_movement)
cal1 = g_vars->scene23_calend1->_movement->_staticsObj2->_staticsId;
else
cal1 = g_vars->scene23_calend1->_statics->_staticsId;

if (g_vars->scene23_calend2->_movement)
cal2 = g_vars->scene23_calend2->_movement->_staticsObj2->_staticsId;
else
cal2 = g_vars->scene23_calend2->_statics->_staticsId;

if (g_vars->scene23_calend3->_movement)
cal3 = g_vars->scene23_calend3->_movement->_staticsObj2->_staticsId;
else
cal3 = g_vars->scene23_calend3->_statics->_staticsId;

return (cal0 == ST_CND_1 && cal1 == ST_CND_4 && cal2 == ST_CND_0 && cal3 == ST_CND_2 && (g_vars->scene23_giraffee->_flags & 4));
}

void scene23_initScene(Scene *sc) {
Expand Down

0 comments on commit fe5454d

Please sign in to comment.