mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +00:00
FULLPIPE: Implement sceneHandler13_openBridge()
This commit is contained in:
parent
58ffa21c29
commit
edb26cb563
@ -81,7 +81,24 @@ void scene13_initScene(Scene *sc) {
|
||||
}
|
||||
|
||||
void sceneHandler13_openBridge() {
|
||||
warning("STUB: sceneHandler13_openBridge()");
|
||||
Movement *mov = g_vars->scene13_bridge->_movement;
|
||||
|
||||
if (mov && mov->_id == MV_BDG_CLOSE) {
|
||||
int sz;
|
||||
|
||||
if (mov->_currMovement)
|
||||
sz = mov->_currMovement->_dynamicPhases.size();
|
||||
else
|
||||
sz = mov->_dynamicPhases.size();
|
||||
|
||||
g_vars->scene13_bridge->changeStatics2(ST_BDG_CLOSED);
|
||||
g_vars->scene13_bridge->startAnim(MV_BDG_OPEN, 0, -1);
|
||||
|
||||
mov->setDynamicPhaseIndex(sz - mov->_currDynamicPhaseIndex);
|
||||
} else {
|
||||
g_vars->scene13_bridge->changeStatics2(ST_BDG_CLOSED);
|
||||
g_vars->scene13_bridge->startAnim(MV_BDG_OPEN, 0, -1);
|
||||
}
|
||||
}
|
||||
|
||||
void sceneHandler13_testClose() {
|
||||
@ -93,19 +110,20 @@ void sceneHandler13_testOpen() {
|
||||
}
|
||||
|
||||
void sceneHandler13_closeBridge() {
|
||||
if (g_vars->scene13_bridge->_movement && g_vars->scene13_bridge->_movement->_id == MV_BDG_OPEN) {
|
||||
Movement *mov = g_vars->scene13_bridge->_movement;
|
||||
|
||||
if (mov && mov->_id == MV_BDG_OPEN) {
|
||||
int sz;
|
||||
|
||||
if (g_vars->scene13_bridge->_movement->_currMovement)
|
||||
sz = g_vars->scene13_bridge->_movement->_currMovement->_dynamicPhases.size();
|
||||
if (mov->_currMovement)
|
||||
sz = mov->_currMovement->_dynamicPhases.size();
|
||||
else
|
||||
sz = g_vars->scene13_bridge->_movement->_dynamicPhases.size();
|
||||
|
||||
int curIdx = g_vars->scene13_bridge->_movement->_currDynamicPhaseIndex;
|
||||
sz = mov->_dynamicPhases.size();
|
||||
|
||||
g_vars->scene13_bridge->changeStatics2(ST_BDG_OPEN2);
|
||||
g_vars->scene13_bridge->startAnim(MV_BDG_CLOSE, 0, -1);
|
||||
g_vars->scene13_bridge->_movement->setDynamicPhaseIndex(sz - curIdx);
|
||||
|
||||
mov->setDynamicPhaseIndex(sz - mov->_currDynamicPhaseIndex);
|
||||
} else {
|
||||
g_vars->scene13_bridge->changeStatics2(ST_BDG_OPEN2);
|
||||
g_vars->scene13_bridge->startAnim(MV_BDG_CLOSE, 0, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user