diff options
author | Eugene Sandulenko | 2014-01-05 01:29:48 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-05 01:30:12 +0200 |
commit | fe5454d065ca402e4eccee01224f74186b0445aa (patch) | |
tree | e8c7e3e138d3af6b1058b1cfcb969da5339e13e0 /engines/fullpipe/scenes | |
parent | e8010719ea60ebb4ab3224d1a7343f56dc13895c (diff) | |
download | scummvm-rg350-fe5454d065ca402e4eccee01224f74186b0445aa.tar.gz scummvm-rg350-fe5454d065ca402e4eccee01224f74186b0445aa.tar.bz2 scummvm-rg350-fe5454d065ca402e4eccee01224f74186b0445aa.zip |
FULLPIPE: Implement sceneHandler23_testCalendar()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene23.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene23.cpp b/engines/fullpipe/scenes/scene23.cpp index bdb3a76771..ed51e2638e 100644 --- a/engines/fullpipe/scenes/scene23.cpp +++ b/engines/fullpipe/scenes/scene23.cpp @@ -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) { |