From c0db320111fc666076239efa4bff48babef1511b Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 27 Jun 2019 07:40:50 +0530 Subject: [PATCH] HDB: Add spawnBlocking() --- engines/hdb/ai.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index bf0a9bc3a7c..3fb7945b9b7 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: