- Added code to check for waterfalls in all 8 cardinal directions

- Fixed bug in which swamp caused a false negative for the wall-rounding code
- Made directions into an enum, with an operator++ and two difference arrays (for x and y).
- Added case to wall-rounding code to handle a lone pillar of wall
- The block_horse flag is cleared when importing a poison or disease terrain, because horses can now not cross status-inflicting terrain at all.
- Added the book Finder icon

git-svn-id: http://openexile.googlecode.com/svn/trunk@64 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-22 03:51:34 +00:00
parent f198b4899d
commit d83db289fa
6 changed files with 122 additions and 64 deletions

View File

@@ -160,14 +160,25 @@ enum eGameMode {
#define STATUS_ACID 13
// Directions!
#define DIR_N 0
#define DIR_NE 1
#define DIR_E 2
#define DIR_SE 3
#define DIR_S 4
#define DIR_SW 5
#define DIR_W 6
#define DIR_NW 7
enum eDirection {
DIR_N = 0,
DIR_NE = 1,
DIR_E = 2,
DIR_SE = 3,
DIR_S = 4,
DIR_SW = 5,
DIR_W = 6,
DIR_NW = 7,
DIR_HERE = 8,
};
#ifndef DIR_ARRAY_DEF
extern signed char dir_x_dif[9];
extern signed char dir_y_dif[9];
#endif
inline eDirection& operator++ (eDirection& me,int){
if(me == DIR_HERE) return me = DIR_N;
else return me = (eDirection) (1 + (int) me);
}
/* damage type*/
/* used as parameter to some functions */