diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-09 22:44:43 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-09 23:21:41 +0100 |
commit | f8d69cbe96b1bcb39b90554800a60d99c0a596f7 (patch) | |
tree | 331391fc0aac88b357e8a6fae173cb08c380fa98 /crawl-ref/source/player.cc | |
parent | 4faab1b80eaf21e1e12c41316d596fb5be45e79d (diff) | |
download | crawl-ref-f8d69cbe96b1bcb39b90554800a60d99c0a596f7.tar.gz crawl-ref-f8d69cbe96b1bcb39b90554800a60d99c0a596f7.zip |
Remove option draw_it from viewwindow.
The only use was just removed.
Also move the draw check closer to where it's used.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e48b4a5422..379e9cb751 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -165,7 +165,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, if (trap_def* ptrap = find_trap(p)) ptrap->reveal(); - viewwindow(true, false); + viewwindow(false); mprf(MSGCH_WARN, "Wait a moment, %s! Do you really want to step there?", @@ -295,7 +295,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, // Have to move now so fall_into_a_pool will work. you.moveto(p); - viewwindow( true, false ); + viewwindow(false); // If true, we were shifted and so we're done. if (fall_into_a_pool( entry, allow_shift, new_grid )) @@ -330,7 +330,7 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, init_player_doll(); #endif - viewwindow(true, false); + viewwindow(false); // Other Effects: // Clouds -- do we need this? (always seems to double up with acr.cc call) @@ -7067,7 +7067,7 @@ void player::put_to_sleep(int) stop_delay(); flash_colour = DARKGREY; - viewwindow(true, false); + viewwindow(false); // Do this *after* redrawing the view, or viewwindow() will no-op. duration[DUR_SLEEP] = 3 + random2avg(5, 2); @@ -7080,7 +7080,7 @@ void player::awake() duration[DUR_SLEEP] = 0; mpr("You wake up."); this->flash_colour = BLACK; - viewwindow(true, false); + viewwindow(false); } void player::check_awaken(int disturbance) |