OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba550ce
)
Backport simplified version of change from 3.0.0 so the English activation message...
author
Eric Branlund
<ebranlund@fastmail.com>
Thu, 11 Aug 2022 19:41:11 +0000
(13:41 -0600)
committer
Eric Branlund
<ebranlund@fastmail.com>
Thu, 11 Aug 2022 19:41:11 +0000
(13:41 -0600)
src/cmd-activate.c
patch
|
blob
|
history
diff --git
a/src/cmd-activate.c
b/src/cmd-activate.c
index
44a5c44
..
7a5100c
100644
(file)
--- a/
src/cmd-activate.c
+++ b/
src/cmd-activate.c
@@
-669,7
+669,7
@@
bool activate_artifact(object_type *o_ptr)
PLAYER_LEVEL plev = p_ptr->lev;
int k, dummy = 0;
DIRECTION dir;
-
concptr name = k_name + k_info[o_ptr->k_idx].name
;
+
GAME_TEXT name[MAX_NLEN]
;
const activation_type* const act_ptr = find_activation_info(o_ptr);
if (!act_ptr) {
/* Maybe forgot adding information to activation_info table ? */
@@
-677,6
+677,8
@@
bool activate_artifact(object_type *o_ptr)
return FALSE;
}
+ strip_name(name, o_ptr->k_idx);
+
/* Activate for attack */
switch (act_ptr->index)
{