summaryrefslogtreecommitdiff
path: root/src/spells1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/spells1.cc')
-rw-r--r--src/spells1.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/spells1.cc b/src/spells1.cc
index fe620256..5217a803 100644
--- a/src/spells1.cc
+++ b/src/spells1.cc
@@ -1334,9 +1334,11 @@ void take_hit(int damage, cptr hit_from)
}
/* Note cause of death */
- (void)strcpy(died_from, hit_from);
-
- if (p_ptr->image) strcat(died_from, "(?)");
+ game->died_from = hit_from;
+ if (p_ptr->image)
+ {
+ game->died_from = "(?)";
+ }
/* Leaving */
p_ptr->leaving = TRUE;
@@ -1508,9 +1510,11 @@ void take_sanity_hit(int damage, cptr hit_from)
}
/* Note cause of death */
- (void)strcpy(died_from, hit_from);
-
- if (p_ptr->image) strcat(died_from, "(?)");
+ game->died_from = hit_from;
+ if (p_ptr->image)
+ {
+ game->died_from = "(?)";
+ }
/* Leaving */
p_ptr->leaving = TRUE;