From 30c7c25e95f8c1c90d06e3380069ccb79811fe87 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 18 Sep 2009 04:20:57 +0000 Subject: 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 --- crawl-ref/source/fight.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref') 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() -- cgit v1.2.3-54-g00ecf