mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
FULLPIPE: Implement sceneHandler27_batSetColors()
This commit is contained in:
parent
2ad7625831
commit
7ece1b1ea6
@ -1105,6 +1105,8 @@ namespace Fullpipe {
|
||||
#define SND_27_027 4128
|
||||
#define SND_27_044 4687
|
||||
#define ST_BTA_FALL 2054
|
||||
#define ST_BTA_HILITE 2052
|
||||
#define ST_BTA_NORM 2028
|
||||
#define ST_DRV_VENT 1996
|
||||
#define ST_MID_BROOM 2022
|
||||
#define ST_MID_SPADE 3489
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user