@@ -554,6 +554,15 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
554
554
return false ;
555
555
}
556
556
557
+ // Check json has precision mod - #8853 (toJSON passes wrong floats)
558
+ json_object* pJsonObject = json_object_new_double (5.12345678901234 );
559
+ SString strJsonResult = json_object_to_json_string_ext (pJsonObject, JSON_C_TO_STRING_PLAIN);
560
+ json_object_put (pJsonObject);
561
+ if (strJsonResult != " 5.12345678901234" )
562
+ {
563
+ CLogger::ErrorPrintf (" JSON built without precision modification\n " );
564
+ }
565
+
557
566
// Grab the path to the main config
558
567
SString strBuffer;
559
568
const char * szMainConfig;
@@ -564,6 +573,7 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
564
573
else
565
574
{
566
575
strBuffer = g_pServerInterface->GetModManager ()->GetAbsolutePath ( " mtaserver.conf" );
576
+ m_bUsingMtaServerConf = true ;
567
577
}
568
578
m_pMainConfig->SetFileName ( strBuffer );
569
579
@@ -907,14 +917,25 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
907
917
// Flush any pending master server announce messages
908
918
g_pNetServer->GetHTTPDownloadManager ( EDownloadMode::ASE )->ProcessQueuedFiles ();
909
919
910
- if ( m_pMainConfig->GetAuthSerialEnabled () )
920
+ // Warnings only if not editor or local server
921
+ if (IsUsingMtaServerConf ())
911
922
{
912
- CLogger::LogPrintf ( " Authorized serial account protection is enabled for the ACL group(s): `%s` See http:" " //mtasa.com/authserial\n " ,
913
- *SString::Join ( " ," , m_pMainConfig->GetAuthSerialGroupList () ) );
914
- }
915
- else
916
- {
917
- CLogger::LogPrint ( " Authorized serial account protection is DISABLED. See http:" " //mtasa.com/authserial\n " );
923
+ // Authorized serial account protection
924
+ if ( m_pMainConfig->GetAuthSerialEnabled () )
925
+ {
926
+ CLogger::LogPrintf ( " Authorized serial account protection is enabled for the ACL group(s): `%s` See http:" " //mtasa.com/authserial\n " ,
927
+ *SString::Join ( " ," , m_pMainConfig->GetAuthSerialGroupList () ) );
928
+ }
929
+ else
930
+ {
931
+ CLogger::LogPrint ( " Authorized serial account protection is DISABLED. See http:" " //mtasa.com/authserial\n " );
932
+ }
933
+
934
+ // Owner email address
935
+ if (m_pMainConfig->GetOwnerEmailAddressList ().empty ())
936
+ {
937
+ CLogger::LogPrintf (" WARNING: <owner_email_address> not set\n " );
938
+ }
918
939
}
919
940
920
941
// Done
0 commit comments