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

Ensure that the master robot can always make it works

This commit is contained in:
Mathieu Schroeter 2021-01-16 00:37:13 +01:00
parent fc01379290
commit 9e8fbc01ba
No known key found for this signature in database
GPG Key ID: 8B9145A5FA9DA8A8

View File

@ -3182,11 +3182,11 @@ goal:
}
else
{
BlupiInitAction (rank, ACTION_STOP);
if (
m_blupi[rank].perso == 0 || // blupi ?
m_blupi[rank].perso == 8) // disciple ?
{
BlupiInitAction (rank, ACTION_STOP);
if (m_blupi[rank].busyCount == 0) // dernière tentative ?
{
GoalStop (rank, true);
@ -3195,9 +3195,12 @@ goal:
m_blupi[rank].interrupt = 1;
}
}
else if (!g_restoreBugs && m_blupi[rank].perso == 4) // master robot
BlupiInitAction (rank, action);
else // perso ennemi ?
{
// On cherchera un autre but !
BlupiInitAction (rank, ACTION_STOP);
GoalStop (rank, true);
//? m_blupi[rank].goalCel.x = -1;
//? m_blupi[rank].goalPhase = 0;