OSDN Git Service

[Fix] #41472 街移動の際に一瞬移動前の街が表示される
authordis- <dis.rogue@gmail.com>
Fri, 5 Feb 2021 08:46:15 +0000 (17:46 +0900)
committerdis- <dis.rogue@gmail.com>
Fri, 5 Feb 2021 08:46:15 +0000 (17:46 +0900)
一部の再描写は連続行動中でなくてもfresh-afterで抑制される必要がある。
該当箇所の条件節を訂正。

src/dungeon/dungeon-processor.c

index cb15836..15a1a3b 100644 (file)
@@ -170,7 +170,7 @@ void process_dungeon(player_type *player_ptr, bool load_game)
         handle_stuff(player_ptr);
 
         move_cursor_relative(player_ptr->y, player_ptr->x);
-        if (need_term_fresh(player_ptr))
+        if (fresh_after)
             term_fresh();
 
         if (!player_ptr->playing || player_ptr->is_dead)
@@ -180,7 +180,7 @@ void process_dungeon(player_type *player_ptr, bool load_game)
         handle_stuff(player_ptr);
 
         move_cursor_relative(player_ptr->y, player_ptr->x);
-        if (need_term_fresh(player_ptr))
+        if (fresh_after)
             term_fresh();
 
         if (!player_ptr->playing || player_ptr->is_dead)
@@ -190,7 +190,7 @@ void process_dungeon(player_type *player_ptr, bool load_game)
         handle_stuff(player_ptr);
 
         move_cursor_relative(player_ptr->y, player_ptr->x);
-        if (need_term_fresh(player_ptr)) {
+        if (fresh_after) {
             term_fresh();
         }