75
75
#define MAX_PROJECTILE_SYNC_DISTANCE 400 .0f
76
76
77
77
#define RELEASE_MIN_CLIENT_VERSION " 1.6.0-0.00000"
78
+ #define FIREBALLDESTRUCT_MIN_CLIENT_VERSION " 1.6.0-9.22199"
78
79
79
80
#ifndef WIN32
80
81
#include < limits.h>
@@ -4563,13 +4564,11 @@ CMtaVersion CGame::CalculateMinClientRequirement()
4563
4564
if (strNewMin < strMinClientRequirementFromResources)
4564
4565
strNewMin = strMinClientRequirementFromResources;
4565
4566
4566
- #if 0
4567
- if (g_pGame->IsGlitchEnabled(GLITCH_DONTBURNFLIPPEDCARS))
4567
+ if (!g_pGame->IsWorldSpecialPropertyEnabled (WorldSpecialProperty::FIREBALLDESTRUCT))
4568
4568
{
4569
- if (strNewMin < DONTBURNFLIPPEDCARS_MIN_CLIENT_VERSION )
4570
- strNewMin = DONTBURNFLIPPEDCARS_MIN_CLIENT_VERSION ;
4569
+ if (strNewMin < FIREBALLDESTRUCT_MIN_CLIENT_VERSION )
4570
+ strNewMin = FIREBALLDESTRUCT_MIN_CLIENT_VERSION ;
4571
4571
}
4572
- #endif
4573
4572
4574
4573
// Log effective min client version
4575
4574
if (strNewMin != m_strPrevMinClientConnectRequirement)
@@ -4588,15 +4587,14 @@ CMtaVersion CGame::CalculateMinClientRequirement()
4588
4587
SendSyncSettings ();
4589
4588
}
4590
4589
4591
- #if 0
4592
4590
// Do version based kick check as well
4593
4591
{
4594
4592
CMtaVersion strKickMin;
4595
4593
4596
- if (g_pGame->IsGlitchEnabled(GLITCH_DONTBURNFLIPPEDCARS ))
4594
+ if (! g_pGame->IsWorldSpecialPropertyEnabled (WorldSpecialProperty::FIREBALLDESTRUCT ))
4597
4595
{
4598
- if (strKickMin < DONTBURNFLIPPEDCARS_MIN_CLIENT_VERSION )
4599
- strKickMin = DONTBURNFLIPPEDCARS_MIN_CLIENT_VERSION ;
4596
+ if (strKickMin < FIREBALLDESTRUCT_MIN_CLIENT_VERSION )
4597
+ strKickMin = FIREBALLDESTRUCT_MIN_CLIENT_VERSION ;
4600
4598
}
4601
4599
4602
4600
if (strKickMin != m_strPrevMinClientKickRequirement)
@@ -4619,7 +4617,6 @@ CMtaVersion CGame::CalculateMinClientRequirement()
4619
4617
CLogger::LogPrintf (SString (" Forced %d player(s) to reconnect so they can update to %s\n " , uiNumIncompatiblePlayers, *strKickMin));
4620
4618
}
4621
4619
}
4622
- #endif
4623
4620
4624
4621
// Also seems a good place to keep this setting synchronized
4625
4622
g_pBandwidthSettings->NotifyBulletSyncEnabled (g_pGame->IsBulletSyncActive ());
0 commit comments