Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unconditionally update overmap vision #36183

Merged
merged 3 commits into from
Dec 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10586,6 +10586,10 @@ point game::update_map( int &x, int &y )
if( shift == point_zero ) {
// adjust player position
u.setpos( tripoint( x, y, get_levz() ) );
// Update what parts of the world map we can see
// We need this call because even if the map hasn't shifted we may have changed z-level and can now see farther
// TODO: only make this call if we changed z-level
update_overmap_seen();
ymber marked this conversation as resolved.
Show resolved Hide resolved
// Not actually shifting the submaps, all the stuff below would do nothing
return point_zero;
}
Expand Down