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:
parent
5db7fe91f6
commit
537c077146
@ -86,6 +86,8 @@
|
||||
#define CHBIGNUM 14
|
||||
#define CHMASK2 15
|
||||
|
||||
#define MAX_PRIVATE_MISSIONS 20
|
||||
|
||||
#define FOGHIDE 4
|
||||
// clang-format on
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user