From 42bde3cb0caf63ea19cfca4237d957c86390b977 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 16 Jun 2009 18:22:29 +0000 Subject: Apply my mouse speed-up commit to trunk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9987 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilereg.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/tilereg.cc') diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 32231aafec..ace47f8066 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -323,15 +323,13 @@ static void _load_doll_data(const char *fn, dolls_data *doll) else { memset(fbuf, 0, sizeof(fbuf)); - int cur = 0; - if (fscanf(fp, "%s", fbuf) != EOF) + if (fscanf(fp, "%s", fbuf) == EOF) { -#if 0 - mpr("Read MODE."); - if (strcmp(fbuf, "MODE=LOADING") == 0) - mode0 = TILEP_M_LOADING; -#endif + // We're currently not interested in the MODE setting. (jpeg) + fclose(fp); + return; } + int cur = 0; if (fscanf(fp, "%s", fbuf) != EOF) { if (strncmp(fbuf, "NUM=", 4) == 0) @@ -932,6 +930,7 @@ int DungeonRegion::handle_mouse(MouseEvent &event) return 0; if (mouse_control::current_mode() == MOUSE_MODE_TARGET + || mouse_control::current_mode() == MOUSE_MODE_TARGET_PATH || mouse_control::current_mode() == MOUSE_MODE_TARGET_DIR) { if (event.event == MouseEvent::MOVE) -- cgit v1.2.3-54-g00ecf