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

Use a define for the max private missions number

This commit is contained in:
Mathieu Schroeter 2018-03-16 11:46:23 +01:00
parent 5db7fe91f6
commit 537c077146
2 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,8 @@
#define CHBIGNUM 14
#define CHMASK2 15
#define MAX_PRIVATE_MISSIONS 20
#define FOGHIDE 4
// clang-format on

View File

@ -5818,7 +5818,7 @@ CEvent::TreatEventBase (const SDL_Event & event)
m_pDecor->SetSuper (false);
if (m_bPrivate)
{
if (m_private < 20 - 1)
if (m_private < MAX_PRIVATE_MISSIONS - 1)
{
m_private++;
if (ChangePhase (EV_PHASE_INFO))