aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai.h
diff options
context:
space:
mode:
authorNipun Garg2019-06-27 07:40:50 +0530
committerEugene Sandulenko2019-09-03 17:17:02 +0200
commitc0db320111fc666076239efa4bff48babef1511b (patch)
treedd4bffaed329dd87a010f401f2fded0ca4f88133 /engines/hdb/ai.h
parent00e6ce26809a7e37e0bb64b9614c1bc289be1631 (diff)
downloadscummvm-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.h5
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: