summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-04 22:01:15 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-04 22:01:15 +0000
commitc070fa4aa13e00f09de5d208fdcdb467a71f3ee7 (patch)
tree836b2796ecd656b5dbf62824b880fb3085411230 /crawl-ref/source/files.cc
parentd81fc850da0f408cc759b3a7815f3e2efc056710 (diff)
downloadcrawl-ref-c070fa4aa13e00f09de5d208fdcdb467a71f3ee7.tar.gz
crawl-ref-c070fa4aa13e00f09de5d208fdcdb467a71f3ee7.zip
[Tiles] Keep track of which dungeon grid the player last clicked and
don't display the grid description (feature, item, monster) for that grid. Fixes (part of) 2660578, i.e. monster descriptions hiding fighting messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9330 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 8f182126e0..f32aca888f 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -100,7 +100,7 @@ static void _save_level( int level_saved, level_area_type lt,
branch_type where_were_you);
static bool _get_and_validate_version( FILE *restoreFile, char& major,
- char& minor, std::string* reason=0);
+ char& minor, std::string* reason = 0);
static bool _determine_ghost_version( FILE *ghostFile,
@@ -1049,6 +1049,9 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode,
// Going up/down stairs, going through a portal, or being banished
// means the previous x/y movement direction is no longer valid.
you.reset_prev_move();
+#ifdef USE_TILE
+ you.last_clicked_grid = coord_def();
+#endif
const bool make_changes =
(load_mode != LOAD_RESTART_GAME && load_mode != LOAD_VISITOR);