Skip to content

Commit

Permalink
Add calls to regenerate neighbours when changing room (#28)
Browse files Browse the repository at this point in the history
Previously only go to room would do this, but now cycling will also do it.
#18
  • Loading branch information
chreden authored Feb 18, 2018
1 parent be65276 commit 9d9e1d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trview/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ namespace trview
void Viewer::cycle_room()
{
_room_window->cycle();
regenerate_neighbours();
}

void Viewer::cycle_back()
Expand All @@ -717,6 +718,7 @@ namespace trview
void Viewer::cycle_room_back()
{
_room_window->cycle_back();
regenerate_neighbours();
}

void Viewer::toggle_room_window()
Expand Down

0 comments on commit 9d9e1d3

Please sign in to comment.