From 97d889a6a77d15d59dd0f67da91df989e91c4b38 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 27 Apr 2008 15:11:04 +0000 Subject: Fix [1949495]: After applying an effect to all dungeons, such as holy beings' getting their attitude change flag cleared upon gaining piety with a good god, player centering will occur even when e.g. Options.view_lock is false. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4695 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 10c095a2e0..998ac5faa0 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1079,7 +1079,7 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode, else you.moveto(45, 35); } - crawl_view.set_player_at(you.pos(), true); + crawl_view.set_player_at(you.pos(), load_mode != LOAD_VISITOR); // This should fix the "monster occurring under the player" bug? if (make_changes && mgrd[you.x_pos][you.y_pos] != NON_MONSTER) -- cgit v1.2.3-54-g00ecf