OSDN Git Service

[Fix] モンスターボールで広域マップ移動が重くなる
authorshimitei <shimitei@gmail.com>
Tue, 15 Jun 2021 11:37:11 +0000 (20:37 +0900)
committershimitei <shimitei@gmail.com>
Tue, 15 Jun 2021 11:37:11 +0000 (20:37 +0900)
ボール中モンスターのHP自然回復処理で描画フラグが立つため、広域マップ移動が重くなっていた。
現在ボールの表示は変化しないため描画フラグをコメントアウトする。

src/hpmp/hp-mp-regenerator.cpp

index b11c261..4f73b9a 100644 (file)
@@ -227,8 +227,9 @@ void regenerate_captured_monsters(player_type *creature_ptr)
 
     if (heal) {
         creature_ptr->update |= (PU_COMBINE);
-        creature_ptr->window_flags |= (PW_INVEN);
-        creature_ptr->window_flags |= (PW_EQUIP);
+        // FIXME 広域マップ移動で1歩毎に何度も再描画されて重くなる。現在はボール中モンスターのHP回復でボールの表示は変わらないためコメントアウトする。
+        //creature_ptr->window_flags |= (PW_INVEN);
+        //creature_ptr->window_flags |= (PW_EQUIP);
         wild_regen = 20;
     }
 }