OSDN Git Service

[Fix] #38852 メッセージ表示にアイテム並べ替えを行ってしまうことによるバグを修正。 / Fix item reorder bugs on printing...
authorDeskull <deskull@users.sourceforge.jp>
Tue, 8 Jan 2019 13:23:24 +0000 (22:23 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 8 Jan 2019 13:23:24 +0000 (22:23 +0900)
src/externs.h
src/util.c
src/xtra1.c

index 77a30f5..aa442ab 100644 (file)
@@ -1176,6 +1176,8 @@ extern int bow_tval_ammo(object_type *o_ptr);
 extern s16b calc_num_fire(object_type *o_ptr);
 extern void calc_bonuses(void);
 extern void handle_stuff(void);
+extern void update_output(void);
+extern void update_creature(void);
 extern BIT_FLAGS16 empty_hands(bool riding_control);
 extern bool heavy_armor(void);
 extern void print_monster_list(TERM_LEN x, TERM_LEN y, TERM_LEN max_lines);
index 0382778..215c44b 100644 (file)
@@ -2910,7 +2910,7 @@ void msg_print(cptr msg)
        /* if (character_generated) message_add(t); */
 
        p_ptr->window |= (PW_MESSAGE);
-       handle_stuff();
+       update_output();
 
        /* Remember the message */
        msg_flag = TRUE;
index 0e4434c..e89784a 100644 (file)
@@ -6109,6 +6109,18 @@ void handle_stuff(void)
        if (p_ptr->window) window_stuff();
 }
 
+void update_output(void)
+{
+       if (p_ptr->redraw) redraw_stuff();
+       if (p_ptr->window) window_stuff();
+}
+
+void update_creature(void)
+{
+       if (p_ptr->notice) notice_stuff();
+       if (p_ptr->update) update_stuff();
+}
+
 /*!
  * @brief プレイヤーの現在開いている手の状態を返す
  * @param riding_control 乗馬中により片手を必要としている状態ならばTRUEを返す。