From 9ba57ee3a6f72308ff01263dfe143cf23c1cf321 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 19 Apr 2008 23:13:26 +0000 Subject: Fixes to compile with Visual C++. Moved direct.cc and direct.h to directn.* to avoid conflict with VC++ direct.h header. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4390 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells4.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 18a23fe6d9..6347edfcf4 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -27,7 +27,7 @@ #include "debug.h" #include "delay.h" #include "describe.h" -#include "direct.h" +#include "directn.h" #include "dungeon.h" #include "effects.h" #include "it_use2.h" @@ -750,7 +750,7 @@ static bool is_domesticated_animal(int type) MONS_SPINY_FROG, MONS_BLINK_FROG, MONS_WOLF, MONS_WARG, MONS_BEAR, MONS_GRIZZLY_BEAR, MONS_POLAR_BEAR, MONS_BLACK_BEAR }; - for ( unsigned int i = 0; i < ARRAYSIZE(types); ++i ) + for ( unsigned int i = 0; i < ARRAYSZ(types); ++i ) if ( types[i] == type ) return true; return false; -- cgit v1.2.3-54-g00ecf