TWINE: draw holomap trajectory on scene change

This commit is contained in:
Martin Gerhardy 2021-01-24 16:54:30 +01:00
parent 140a6f1dfc
commit d7ff84d317
3 changed files with 7 additions and 2 deletions

View file

@ -311,7 +311,10 @@ void Scene::changeScene() {
initScene(needChangeScene);
// TODO: treat holomap trajectories
if (holomapTrajectory != -1) {
_engine->_holomap->drawHolomapTrajectory(holomapTrajectory);
holomapTrajectory = -1;
}
if (needChangeScene == LBA1SceneId::Citadel_Island_end_sequence_1 || needChangeScene == LBA1SceneId::Citadel_Island_end_sequence_2) {
sceneTextBank = TextBankId::Tippet_Island;

View file

@ -309,6 +309,8 @@ public:
int32 currentSceneIdx = LBA1SceneId::Citadel_Island_Prison;
int32 previousSceneIdx = LBA1SceneId::Citadel_Island_Prison;
int32 holomapTrajectory = -1;
int32 sceneTextBank = TextBankId::None;
int32 alphaLight = ANGLE_0;
int32 betaLight = ANGLE_0;

View file

@ -1640,7 +1640,7 @@ static int32 lANIM_SET(TwinEEngine *engine, LifeScriptContext &ctx) {
* @note Opcode @c 0x60
*/
static int32 lHOLOMAP_TRAJ(TwinEEngine *engine, LifeScriptContext &ctx) {
engine->_holomap->drawHolomapTrajectory(ctx.stream.readByte());
engine->_scene->holomapTrajectory = ctx.stream.readByte();
return 0;
}