@@ -554,6 +554,15 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
554554 return false ;
555555 }
556556
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+
557566 // Grab the path to the main config
558567 SString strBuffer;
559568 const char * szMainConfig;
@@ -564,6 +573,7 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
564573 else
565574 {
566575 strBuffer = g_pServerInterface->GetModManager ()->GetAbsolutePath ( " mtaserver.conf" );
576+ m_bUsingMtaServerConf = true ;
567577 }
568578 m_pMainConfig->SetFileName ( strBuffer );
569579
@@ -907,14 +917,25 @@ bool CGame::Start ( int iArgumentCount, char* szArguments [] )
907917 // Flush any pending master server announce messages
908918 g_pNetServer->GetHTTPDownloadManager ( EDownloadMode::ASE )->ProcessQueuedFiles ();
909919
910- if ( m_pMainConfig->GetAuthSerialEnabled () )
920+ // Warnings only if not editor or local server
921+ if (IsUsingMtaServerConf ())
911922 {
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+ }
918939 }
919940
920941 // Done
0 commit comments