diff options
author | Bardur Arantsson <bardur@scientician.net> | 2017-05-02 19:20:57 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2017-05-02 19:20:57 +0200 |
commit | 0f37adeca0e2facfcb32f30e285048fac23c8845 (patch) | |
tree | afd03e3d5b92f2936e0606c52d20e3704e16295f /src/dungeon.cc | |
parent | 2bf6a6ce72bf3f2038cd383fb7c6d35679ef9341 (diff) |
Move died_from to Game struct
Diffstat (limited to 'src/dungeon.cc')
-rw-r--r-- | src/dungeon.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/dungeon.cc b/src/dungeon.cc index ce42ecf4..26a34815 100644 --- a/src/dungeon.cc +++ b/src/dungeon.cc @@ -1890,10 +1890,12 @@ static void process_world(void) msg_print(death_message); } - /* Note cause of death */ - (void)strcpy(died_from, "being undead too long"); - - if (p_ptr->image) strcat(died_from, "(?)"); + /* Note cause of death; hallucinating characters don't get to know. */ + game->died_from = "being undead too long"; + if (p_ptr->image) + { + game->died_from = "(?)"; + } /* No longer a winner */ total_winner = FALSE; @@ -5390,8 +5392,8 @@ void play_game() p_ptr->word_recall = 0; } - /* Note cause of death XXX XXX XXX */ - (void)strcpy(died_from, "Cheating death"); + /* Note cause of death */ + game->died_from = "Cheating death"; /* Do not die */ death = FALSE; |