diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 13:27:15 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-27 13:27:15 +0000 |
commit | aaa1bacdf65cbd572379f98897745eb07161d6b0 (patch) | |
tree | c3cececa2a7a0ecc2fe095f54f7656e3f7ef0e1f /crawl-ref/source/newgame.cc | |
parent | a86d2a52392ed50ba63ed9712c05f3574e45d695 (diff) | |
download | crawl-ref-aaa1bacdf65cbd572379f98897745eb07161d6b0.tar.gz crawl-ref-aaa1bacdf65cbd572379f98897745eb07161d6b0.zip |
Update documentation on coding conventions, and apply a few of them. :)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5295 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 277ecd782e..d00eaa0a5d 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -326,11 +326,11 @@ int get_species_by_abbrev( const char *abbrev ) COMPILE_CHECK(ARRAYSZ(Species_Abbrev_List) == NUM_SPECIES, c1); for (i = SP_HUMAN; i < NUM_SPECIES; i++) { - if (tolower( abbrev[0] ) == tolower( Species_Abbrev_List[i][0] ) - && tolower( abbrev[1] ) == tolower( Species_Abbrev_List[i][1] )) - { - break; - } + if (tolower( abbrev[0] ) == tolower( Species_Abbrev_List[i][0] ) + && tolower( abbrev[1] ) == tolower( Species_Abbrev_List[i][1] )) + { + break; + } } return ((i < NUM_SPECIES) ? i : -1); @@ -557,8 +557,8 @@ int give_first_conjuration_book() // Conjuration books are largely Fire or Ice, so we'll use // that as the primary condition, and air/earth to break ties. -- bwr if (you.skills[SK_ICE_MAGIC] > you.skills[SK_FIRE_MAGIC] - || (you.skills[SK_FIRE_MAGIC] == you.skills[SK_ICE_MAGIC] - && you.skills[SK_AIR_MAGIC] > you.skills[SK_EARTH_MAGIC])) + || you.skills[SK_FIRE_MAGIC] == you.skills[SK_ICE_MAGIC] + && you.skills[SK_AIR_MAGIC] > you.skills[SK_EARTH_MAGIC]) { book = BOOK_CONJURATIONS_II; } |