1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Prevent time bom duplication

it fixes issue https://github.com/blupi-games/planetblupi/issues/82
This commit is contained in:
Mathieu Schroeter 2021-01-14 23:26:20 +01:00
parent 3f63af434e
commit f07d064cc9
No known key found for this signature in database
GPG Key ID: 8B9145A5FA9DA8A8

View File

@ -2496,6 +2496,14 @@ CDecor::BlupiNextAction (Sint32 rank)
GoalStop (i, true);
return false;
}
/* Prevent time bomb duplication */
if (m_blupi[i].goalAction == EV_ACTION_MINE2)
{
BlupiInitAction (rank, ACTION_STOP);
GoalStop (rank, true);
return false;
}
}
/* Prevent Blupi to take a trap when an enemy is already captured. */