diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 04:20:57 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 04:20:57 +0000 |
commit | 30c7c25e95f8c1c90d06e3380069ccb79811fe87 (patch) | |
tree | f6a9600f7c05c276786ead4d80c91c562896826e /crawl-ref/source | |
parent | e10520f2d633eda462eda65216453b2496956cdf (diff) | |
download | crawl-ref-30c7c25e95f8c1c90d06e3380069ccb79811fe87.tar.gz crawl-ref-30c7c25e95f8c1c90d06e3380069ccb79811fe87.zip |
Add still more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10707 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/fight.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 58d4a45813..a957d8b794 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -4276,12 +4276,12 @@ std::string melee_attack::mons_attack_verb(const mon_attack_def &attk) { if (attacker->id() == MONS_KILLER_KLOWN && attk.type == AT_HIT) { - const int num_attacks = sizeof(klown_attack) / sizeof(klown_attack[0]); - return klown_attack[random2(num_attacks)]; + const int num_attacks = sizeof(klown_attack) / sizeof(*klown_attack); + return (klown_attack[random2(num_attacks)]); } if (attacker->id() == MONS_KRAKEN_TENTACLE) - return "slap"; + return ("slap"); static const char *attack_types[] = { @@ -4303,7 +4303,7 @@ std::string melee_attack::mons_attack_verb(const mon_attack_def &attk) "gore" }; - return attack_types[attk.type]; + return (attack_types[attk.type]); } std::string melee_attack::mons_weapon_desc() |