summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 13:17:04 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 13:17:04 +0000
commit961af9991a452fe8ae5abe186a93df67d7169239 (patch)
treeac77ca2c7664faa6cfe17f9d342bd6afe32ee35f /crawl-ref/source/tags.cc
parent83a88e5198b9b3c71123164d315d0fd94c4101be (diff)
downloadcrawl-ref-961af9991a452fe8ae5abe186a93df67d7169239.tar.gz
crawl-ref-961af9991a452fe8ae5abe186a93df67d7169239.zip
Another one of those pesky spacing changes.
One of these days Crawl *will* win the Cleanest Code Championship, just you wait... :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4242 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 78a74fd8b7..736fb7ce90 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -785,7 +785,7 @@ void tag_set_expected(char tags[], int fileType)
{
int i;
- for(i=0; i<NUM_TAGS; i++)
+ for (i=0; i<NUM_TAGS; i++)
{
tags[i] = -1;
switch(fileType)
@@ -2104,16 +2104,16 @@ void tag_missing_level_attitude()
// can be used to determine friendly/neutral/
// hostile.
int i;
- bool isFriendly;
+ bool is_friendly;
unsigned int new_beh = BEH_WANDER;
- for(i=0; i<MAX_MONSTERS; i++)
+ for (i = 0; i < MAX_MONSTERS; i++)
{
// only do actual monsters
if (menv[i].type < 0)
continue;
- isFriendly = testbits(menv[i].flags, MF_CREATED_FRIENDLY);
+ is_friendly = testbits(menv[i].flags, MF_CREATED_FRIENDLY);
menv[i].foe = MHITNOT;
@@ -2132,13 +2132,13 @@ void tag_missing_level_attitude()
break;
case 7: // old BEH_ENSLAVED
if (!menv[i].has_ench(ENCH_CHARM))
- isFriendly = true;
+ is_friendly = true;
break;
default:
break;
}
- menv[i].attitude = (isFriendly)? ATT_FRIENDLY : ATT_HOSTILE;
+ menv[i].attitude = (is_friendly) ? ATT_FRIENDLY : ATT_HOSTILE;
menv[i].behaviour = static_cast<beh_type>(new_beh);
menv[i].foe_memory = 0;
}