summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-10 03:30:55 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-10 03:30:55 +0000
commit77b5cadac636ddee4ed39bcaf1344c270fcaa447 (patch)
tree909c1ce1e1fa67eb83548c97790da2287c4d01e1 /crawl-ref/source/effects.cc
parentde978e5fed84aaa1b077fed70b93eba1a3d82edc (diff)
downloadcrawl-ref-77b5cadac636ddee4ed39bcaf1344c270fcaa447.tar.gz
crawl-ref-77b5cadac636ddee4ed39bcaf1344c270fcaa447.zip
Batch of tiny changes for MSVC compiles.
Most of these fall into the category: - don't use struct to refer to a class, and vice versa - msvc doesn't like unistd.h or dirent.h Doesn't fix all the struct/class problems; I think I'll silence those for now and move on because it's not all that important. Tested on OS X. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3571 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index d6af67574d..4e7a8e51f9 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -64,7 +64,7 @@
bool holy_word(int pow, int caster, bool silent)
{
bool holy_influenced = false;
- struct monsters *monster;
+ monsters *monster;
if (!silent)
mpr("You speak a Word of immense power!");
@@ -205,7 +205,7 @@ int torment_monsters(int x, int y, int pow, int caster)
if (mon == NON_MONSTER)
return 0;
- struct monsters *monster = &menv[mon];
+ monsters *monster = &menv[mon];
if (monster->type == -1)
return 0;
@@ -605,7 +605,7 @@ void mons_direct_effect(struct bolt &pbolt, int i)
{
// note the translation here - important {dlb}
int o = menv[i].foe;
- struct monsters *monster = &menv[o];
+ monsters *monster = &menv[o];
int damage_taken = 0;
// annoy the target