Skip to content

Commit

Permalink
Better accuracy in replace enemy events
Browse files Browse the repository at this point in the history
  • Loading branch information
KScl committed Jul 30, 2020
1 parent e376530 commit 62f58dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tyrian2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 62f58dc

Please sign in to comment.