From 62f58dc362fe1a427688909e6dc8b35b48a86d6d Mon Sep 17 00:00:00 2001 From: Kaito Sinclaire Date: Thu, 30 Jul 2020 08:10:55 -0700 Subject: [PATCH] Better accuracy in replace enemy events --- src/tyrian2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tyrian2.c b/src/tyrian2.c index c789d1d4..4797d0bf 100644 --- a/src/tyrian2.c +++ b/src/tyrian2.c @@ -4868,10 +4868,10 @@ void JE_eventSystem( void ) for (temp = 0; temp < 100; temp++) { - if (!(eventRec[eventLoc-1].eventdat4 == 99 || enemy[temp].linknum == eventRec[eventLoc-1].eventdat4)) + if (!(eventRec[eventLoc-1].eventdat4 == 0 || enemy[temp].linknum == eventRec[eventLoc-1].eventdat4)) continue; - const int enemy_offset = (enemyDat[eDatI].value > 30000) ? 100 : (temp - (temp % 25)); + const int enemy_offset = temp - (temp % 25); b = JE_newEnemy(enemy_offset, eDatI, 0); if (b != 0) {