diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-03 01:43:25 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-03 01:43:25 +0000 |
commit | cca6195c042a64fed711dba3ea0d94bc78b410df (patch) | |
tree | bab4ebf846696618ac15accb449fddd6fbe63238 /crawl-ref/source | |
parent | 18237732905aecff4279a4ad070f41a22db1e9cf (diff) | |
download | crawl-ref-cca6195c042a64fed711dba3ea0d94bc78b410df.tar.gz crawl-ref-cca6195c042a64fed711dba3ea0d94bc78b410df.zip |
Add minor whitespace and comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2986 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/item_use.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/libunix.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/religion.cc | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 23a783319a..5fbaf7423c 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -1758,7 +1758,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, // CALCULATIONS FOR LAUNCHED WEAPONS if (projected == LRET_LAUNCHED) { - const item_def &launcher = you.inv[you.equip[EQ_WEAPON]]; + const item_def &launcher = you.inv[you.equip[EQ_WEAPON]]; const int bow_brand = get_weapon_brand( launcher ); const int ammo_brand = get_ammo_brand( item ); bool poisoned = (ammo_brand == SPMSL_POISONED); @@ -1797,7 +1797,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, // fix ammo damage bonus, since missiles only use inv_plus ammoDamBonus = ammoHitBonus; - // check for matches; dwarven,elven,orcish + // check for matches; dwarven, elven, orcish if (!get_equip_race(you.inv[you.equip[EQ_WEAPON]]) == 0) { if (get_equip_race( you.inv[you.equip[EQ_WEAPON]] ) @@ -2082,7 +2082,7 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus, && (wepType == MI_STONE || wepType == MI_LARGE_ROCK))) { // elves with elven weapons - if (get_equip_race(item) == ISFLAG_ELVEN + if (get_equip_race(item) == ISFLAG_ELVEN && player_genus(GENPC_ELVEN)) baseHit += 1; diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index ea2d535469..0792189fd0 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -206,7 +206,7 @@ static void termio_init() def_term.c_cc[VINTR] = (char) 3; // ctrl-C game_term.c_cc[VINTR] = (char) 3; // ctrl-C - // Lets recover some control sequences + // Let's recover some control sequences game_term.c_cc[VSTART] = (char) -1; // ctrl-Q game_term.c_cc[VSTOP] = (char) -1; // ctrl-S game_term.c_cc[VSUSP] = (char) -1; // ctrl-Y diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 73a0eaefc1..0f876d8cd5 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -796,7 +796,7 @@ static void do_god_gift(bool prayed_for) case GOD_YREDELEMNUL: if (random2(you.piety) > 80 && one_chance_in(5)) { - monster_type thing_called = + monster_type thing_called = random_servant(GOD_YREDELEMNUL); if (create_monster(thing_called, 0, BEH_FRIENDLY, @@ -2664,11 +2664,11 @@ void beogh_idol_revenge() || (you.species == SP_HILL_ORC && coinflip()) || one_chance_in(3)) { - const char* revenge; + const char *revenge; if (you.religion == GOD_BEOGH) { - const char* messages[3] = { + const char *messages[3] = { "Beogh fumes, \"This is no small sin, orc. Repent!\"", "Beogh whispers, \"You will pay for this transgression.\"", "Beogh rages, \"An eye for an eye...\"" @@ -2678,7 +2678,7 @@ void beogh_idol_revenge() } else if (you.species == SP_HILL_ORC) { - const char* messages[2] = { + const char *messages[2] = { "Beogh's voice booms out: \"Heretic, die!\"", "You hear Beogh's thundering voice: \"Suffer, infidel!\"" }; @@ -2687,7 +2687,7 @@ void beogh_idol_revenge() } else { - const char* messages[2] = { + const char *messages[2] = { "Beogh is not amused about the destruction of his idols.", "Beogh seems highly displeased." }; |