diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:57 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:57 +0100 |
commit | c4746c0f6d328baa429c96e54d86d2d7f97ccbcc (patch) | |
tree | 3f0b3a2f98298ab823662e0096bc7ba857793b98 /src/spells1.cc | |
parent | b84ac3e1b505624e2af18a4283e7ec379c00b0dc (diff) |
Remove r_name, r_text, r_head in favor of simple strings
Diffstat (limited to 'src/spells1.cc')
-rw-r--r-- | src/spells1.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/spells1.cc b/src/spells1.cc index 0eda200c..c7b02580 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -4354,8 +4354,6 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) char killer [80]; - cptr name = (r_name + r_ptr->name); - /* Is the monster "seen"? */ bool_ seen; @@ -4827,8 +4825,8 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) { if (seen) obvious = TRUE; if ((r_ptr->d_char == 'E') && - (prefix(name, "W") || - (strstr((r_name + r_ptr->name), "Unmaker")))) + (prefix(r_ptr->name, "W") || + (strstr(r_ptr->name, "Unmaker")))) { note = " is immune."; dam = 0; @@ -4848,8 +4846,8 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) { if (seen) obvious = TRUE; if ((r_ptr->d_char == 'E') && - (prefix(name, "W") || - (strstr((r_name + r_ptr->name), "Unmaker")))) + (prefix(r_ptr->name, "W") || + (strstr(r_ptr->name, "Unmaker")))) { note = " is immune."; dam = 0; |