ZoriaRPG

ShadowBlitz EnemyIsInBox() fix.

Apr 29th, 2018
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool EnemyIsInBox(npc enemy, int x1, int y1, int x2, int y2)
  2. {      
  3.     if (x1 > enemy->X+enemy->HitWidth ) return false;
  4.     if ( x2 < enemy->X ) return false;
  5.     if ( y1 > enemy->Y+enemy->HitHeight ) return false;
  6.     if ( y2 > enemy->Y) return false;
  7.     return true;
  8. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×