From b2af88608f1c3f45cc6576382fd1d6d7afa5db96 Mon Sep 17 00:00:00 2001 From: XProger Date: Sun, 15 Jul 2018 05:23:18 +0300 Subject: [PATCH] fix waterfall fliprooms --- src/game.h | 3 ++- src/trigger.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game.h b/src/game.h index d7e59bbc..6125ae1f 100644 --- a/src/game.h +++ b/src/game.h @@ -22,11 +22,12 @@ namespace Game { delete level; level = new Level(*lvl); + bool playLogo = level->level.isTitle() && id == TR::LVL_MAX; bool playVideo = id != level->level.id; if (level->level.isTitle() && id != TR::LVL_MAX) playVideo = false; - level->init(id == TR::LVL_MAX, playVideo); + level->init(playLogo, playVideo); UI::game = level; #if !defined(_OS_PSP) && !defined(_OS_CLOVER) diff --git a/src/trigger.h b/src/trigger.h index 9d9b2236..034658e1 100644 --- a/src/trigger.h +++ b/src/trigger.h @@ -1456,7 +1456,7 @@ struct Waterfall : Controller { Waterfall(IGame *game, int entity) : Controller(game, entity), timer(0.0f) {} virtual void update() { - if (getEntity().room != getRoomIndex()) // room is flipped + if (getRoom().alternateRoom != -1 && level->state.flags.flipped) // room is flipped return; vec3 delta = (game->getLara(pos)->pos - pos) * (1.0f / 1024.0f);