Skip to content

Commit

Permalink
Don't toggle room if no valid alternate
Browse files Browse the repository at this point in the history
  • Loading branch information
chreden committed Feb 1, 2025
1 parent 1b45cca commit 8720f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trview.app/Elements/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ namespace trview
{
if (version() >= trlevel::LevelVersion::Tomb4)
{
return room.alternate_mode() == IRoom::AlternateMode::HasAlternate && is_alternate_group_set(room.alternate_group()) ||
return (room.alternate_mode() == IRoom::AlternateMode::HasAlternate && is_alternate_group_set(room.alternate_group()) && room.alternate_room() != -1) ||
room.alternate_mode() == IRoom::AlternateMode::IsAlternate && !is_alternate_group_set(room.alternate_group());
}

Expand Down

0 comments on commit 8720f74

Please sign in to comment.