• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision92885d98c6c410fb5a7e8cc63cb456ac9ca463e6 (tree)
Time2019-06-12 08:11:41
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除(/* Obtain a local object */)

Change Summary

Incremental Difference

--- a/src/cmd-basic.c
+++ b/src/cmd-basic.c
@@ -2450,8 +2450,6 @@ bool do_cmd_throw(int mult, bool boomerang, OBJECT_IDX shuriken)
24502450
24512451 }
24522452 q_ptr = &forge;
2453-
2454- /* Obtain a local object */
24552453 object_copy(q_ptr, o_ptr);
24562454
24572455 /* Extract the thrown object's flags. */
--- a/src/cmd-eat.c
+++ b/src/cmd-eat.c
@@ -387,8 +387,6 @@ void do_cmd_eat_food_aux(INVENTORY_IDX item)
387387 object_type forge;
388388 object_type *q_ptr;
389389 q_ptr = &forge;
390-
391- /* Obtain a local object */
392390 object_copy(q_ptr, o_ptr);
393391
394392 /* Modify quantity */
--- a/src/cmd-quaff.c
+++ b/src/cmd-quaff.c
@@ -73,8 +73,6 @@ void do_cmd_quaff_potion_aux(INVENTORY_IDX item)
7373 o_ptr = &current_floor_ptr->o_list[0 - item];
7474 }
7575 q_ptr = &forge;
76-
77- /* Obtain a local object */
7876 object_copy(q_ptr, o_ptr);
7977
8078 /* Single object */
--- a/src/cmd-usestaff.c
+++ b/src/cmd-usestaff.c
@@ -394,8 +394,6 @@ void do_cmd_use_staff_aux(INVENTORY_IDX item)
394394 object_type forge;
395395 object_type *q_ptr;
396396 q_ptr = &forge;
397-
398- /* Obtain a local object */
399397 object_copy(q_ptr, o_ptr);
400398
401399 /* Modify quantity */
--- a/src/object2.c
+++ b/src/object2.c
@@ -5442,8 +5442,6 @@ INVENTORY_IDX inven_takeoff(INVENTORY_IDX item, ITEM_NUMBER amt)
54425442 /* Verify */
54435443 if (amt > o_ptr->number) amt = o_ptr->number;
54445444 q_ptr = &forge;
5445-
5446- /* Obtain a local object */
54475445 object_copy(q_ptr, o_ptr);
54485446
54495447 /* Modify quantity */
--- a/src/shoot.c
+++ b/src/shoot.c
@@ -490,8 +490,6 @@ void exe_fire(INVENTORY_IDX item, object_type *j_ptr, SPELL_IDX snipe_type)
490490 y = p_ptr->y;
491491 x = p_ptr->x;
492492 q_ptr = &forge;
493-
494- /* Obtain a local object */
495493 object_copy(q_ptr, o_ptr);
496494
497495 /* Single object */
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -3526,8 +3526,6 @@ bool eat_magic(int power)
35263526 object_type forge;
35273527 object_type *q_ptr;
35283528 q_ptr = &forge;
3529-
3530- /* Obtain a local object */
35313529 object_copy(q_ptr, o_ptr);
35323530
35333531 /* Modify quantity */
Show on old repository browser