• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionceff2214ac7829fb0ad4f08e49f10113d2803526 (tree)
Time2013-02-01 04:11:29
Authoriks <iks@0568...>
Commiteriks

Log Message

When an object has activation flag and xtra2=0, restore activation index by referring act_idx even if normal object.

Change Summary

Incremental Difference

--- a/src/cmd6.c
+++ b/src/cmd6.c
@@ -4119,10 +4119,14 @@ static void do_cmd_activate_aux(int item)
41194119 {
41204120 if (!o_ptr->xtra2) o_ptr->xtra2 = a_info[o_ptr->name1].act_idx;
41214121 }
4122- if (object_is_ego(o_ptr))
4122+ else if (object_is_ego(o_ptr))
41234123 {
41244124 if (!o_ptr->xtra2) o_ptr->xtra2 = e_info[o_ptr->name2].act_idx;
41254125 }
4126+ else
4127+ {
4128+ if (!o_ptr->xtra2) o_ptr->xtra2 = k_info[o_ptr->k_idx].act_idx;
4129+ }
41264130
41274131 /* Activate object */
41284132 /* if (o_ptr->xtra2 && (object_is_artifact(o_ptr) || object_is_ego(o_ptr))) */
--- a/src/object1.c
+++ b/src/object1.c
@@ -423,10 +423,14 @@ cptr item_activation(object_type *o_ptr)
423423 {
424424 if (!o_ptr->xtra2) o_ptr->xtra2 = a_info[o_ptr->name1].act_idx;
425425 }
426- if (object_is_ego(o_ptr))
426+ else if (object_is_ego(o_ptr))
427427 {
428428 if (!o_ptr->xtra2) o_ptr->xtra2 = e_info[o_ptr->name2].act_idx;
429429 }
430+ else
431+ {
432+ if (!o_ptr->xtra2) o_ptr->xtra2 = k_info[o_ptr->k_idx].act_idx;
433+ }
430434
431435 /* Get an explain of an activation */
432436 /* if ((object_is_artifact(o_ptr) || object_is_ego(o_ptr)) && (o_ptr->xtra2)) */
Show on old repository browser