diff options
author | Eugene Sandulenko | 2014-02-05 22:38:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-02-05 23:58:43 +0200 |
commit | 7ece1b1ea6e10e4f358d86cfdb741dfbfe30eaf3 (patch) | |
tree | 0d6ac44def5a7e9578e55df34ce2e75949670291 /engines/fullpipe/scenes/scene27.cpp | |
parent | 2ad7625831897d97524891cb88af8b3e48e4facb (diff) | |
download | scummvm-rg350-7ece1b1ea6e10e4f358d86cfdb741dfbfe30eaf3.tar.gz scummvm-rg350-7ece1b1ea6e10e4f358d86cfdb741dfbfe30eaf3.tar.bz2 scummvm-rg350-7ece1b1ea6e10e4f358d86cfdb741dfbfe30eaf3.zip |
FULLPIPE: Implement sceneHandler27_batSetColors()
Diffstat (limited to 'engines/fullpipe/scenes/scene27.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene27.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp index 52dc42f37c..ef765bed09 100644 --- a/engines/fullpipe/scenes/scene27.cpp +++ b/engines/fullpipe/scenes/scene27.cpp @@ -366,8 +366,20 @@ void sceneHandler27_knockBats(int bat1, int bat2) { warning("STUB: sceneHandler27_knockBats()"); } -void sceneHandler27_batSetColors(int bat) { - warning("STUB: sceneHandler27_batSetColors()"); +void sceneHandler27_batSetColors(int batn) { + Bat *bat = g_vars->scene27_bats[batn]; + + if (g_vars->scene27_hitZone->isPixelHitAtPos((int)bat->currX, (int)bat->currY) ) { + if (bat->ani->_statics->_staticsId == ST_BTA_NORM) { + if (!bat->ani->_movement) + bat->ani->_statics = bat->ani->getStaticsById(ST_BTA_HILITE); + } + } else { + if (bat->ani->_statics->_staticsId == ST_BTA_HILITE) { + if (!bat->ani->_movement) + bat->ani->_statics = bat->ani->getStaticsById(ST_BTA_NORM); + } + } } void sceneHandler27_calcWinArcade() { |