From c070fa4aa13e00f09de5d208fdcdb467a71f3ee7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 4 Mar 2009 22:01:15 +0000 Subject: [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 --- crawl-ref/source/files.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/files.cc') 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); -- cgit v1.2.3-54-g00ecf