diff options
author | Nipun Garg | 2019-06-27 07:40:50 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:02 +0200 |
commit | c0db320111fc666076239efa4bff48babef1511b (patch) | |
tree | dd4bffaed329dd87a010f401f2fded0ca4f88133 /engines/hdb/ai.h | |
parent | 00e6ce26809a7e37e0bb64b9614c1bc289be1631 (diff) | |
download | scummvm-rg350-c0db320111fc666076239efa4bff48babef1511b.tar.gz scummvm-rg350-c0db320111fc666076239efa4bff48babef1511b.tar.bz2 scummvm-rg350-c0db320111fc666076239efa4bff48babef1511b.zip |
HDB: Add spawnBlocking()
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r-- | engines/hdb/ai.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index bf0a9bc3a7..3fb7945b9b 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -656,8 +656,9 @@ struct CineBlit { CineBlit() : x(0), y(0), pic(NULL), name(""), id(""), masked(false) {} }; -#define onEvenTile(x, y) ( !(x & 31) && !(y & 31) ) -#define hitPlayer(x, y) ( e->onScreen && g_hdb->_ai->checkPlayerCollision( x, y, 4 ) && !g_hdb->_ai->playerDead() ) +#define onEvenTile(x, y) ( !(x & 31) && !(y & 31) ) +#define hitPlayer(x, y) ( e->onScreen && g_hdb->_ai->checkPlayerCollision( x, y, 4 ) && !g_hdb->_ai->playerDead() ) +#define spawnBlocking(x, y, level) g_hdb->_ai->spawn(AI_NONE, DIR_NONE, x, y, NULL, NULL, NULL, DIR_NONE, level, 0, 0, 0) class AI { public: |