diff options
author | Nipun Garg | 2019-06-27 01:08:10 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:01 +0200 |
commit | 9f3fab3b4e466738a38f71912f12726b34eff035 (patch) | |
tree | 854e41db881f45ccada88f8a57db39535e619d09 /engines/hdb | |
parent | fbf1af2654446aaae4ea3562a627a1a679fce155 (diff) | |
download | scummvm-rg350-9f3fab3b4e466738a38f71912f12726b34eff035.tar.gz scummvm-rg350-9f3fab3b4e466738a38f71912f12726b34eff035.tar.bz2 scummvm-rg350-9f3fab3b4e466738a38f71912f12726b34eff035.zip |
HDB: Add hitPlayer()
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/ai.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 51b8657d6f..ec8c200244 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -647,6 +647,7 @@ struct CineBlit { }; #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() ) class AI { public: |