From 8e2fd9668434dae5f05c16fd8fb1e237aa51feea Mon Sep 17 00:00:00 2001 From: deskull Date: Thu, 14 Mar 2019 15:03:19 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E3=82=B3=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=88=E6=95=B4=E7=90=86=E3=80=82=20/=20Refactor=20c?= =?utf8?q?omments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/init1.c | 1 - src/load.c | 4 ---- src/object2.c | 7 ------- 3 files changed, 12 deletions(-) diff --git a/src/init1.c b/src/init1.c index a73a42912..712969fff 100644 --- a/src/init1.c +++ b/src/init1.c @@ -3922,7 +3922,6 @@ static void drop_here(object_type *j_ptr, POSITION y, POSITION x) /* Build a stack */ o_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; } diff --git a/src/load.c b/src/load.c index 3b9fca059..03c1740de 100644 --- a/src/load.c +++ b/src/load.c @@ -2878,7 +2878,6 @@ static errr rd_dungeon_old(void) /* Build a stack */ o_ptr->next_o_idx = m_ptr->hold_o_idx; - /* Place the object */ m_ptr->hold_o_idx = o_idx; } @@ -2891,7 +2890,6 @@ static errr rd_dungeon_old(void) /* Build a stack */ o_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; } } @@ -3192,7 +3190,6 @@ static errr rd_saved_floor(saved_floor_type *sf_ptr) /* Build a stack */ o_ptr->next_o_idx = m_ptr->hold_o_idx; - /* Place the object */ m_ptr->hold_o_idx = o_idx; } @@ -3205,7 +3202,6 @@ static errr rd_saved_floor(saved_floor_type *sf_ptr) /* Build a stack */ o_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; } } diff --git a/src/object2.c b/src/object2.c index cf99eea24..c5e6355be 100644 --- a/src/object2.c +++ b/src/object2.c @@ -4438,11 +4438,8 @@ void place_object(POSITION y, POSITION x, BIT_FLAGS mode) /* Build a stack */ o_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; - note_spot(y, x); - lite_spot(y, x); } else @@ -4552,11 +4549,8 @@ void place_gold(POSITION y, POSITION x) /* Build a stack */ o_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; - note_spot(y, x); - lite_spot(y, x); } } @@ -4876,7 +4870,6 @@ OBJECT_IDX drop_near(object_type *j_ptr, PERCENTAGE chance, POSITION y, POSITION /* Build a stack */ j_ptr->next_o_idx = g_ptr->o_idx; - /* Place the object */ g_ptr->o_idx = o_idx; /* Success */ -- 2.11.0