Skip to content

Commit fbeff89

Browse files
committed
Small tweaks incl. updated debug logging and removed unused code.
1 parent 3a9001e commit fbeff89

File tree

7 files changed

+24
-14
lines changed

7 files changed

+24
-14
lines changed

MTA10/core/CServerList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CMasterServerManagerInterface;
2727
#include "tracking/CHTTPClient.h"
2828

2929
// Master server list URL
30-
#define SERVER_LIST_MASTER_URL "http://1mgg.com/affil/mta-1.0"
30+
#define SERVER_LIST_MASTER_URL "http://master.multitheftauto.com/ase/mta/"
3131

3232
// Query response data buffer
3333
#define SERVER_LIST_QUERY_BUFFER 4096

MTA10/core/CVersionUpdater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ void CVersionUpdater::GetAseServerList ( std::vector < SString >& outResult )
686686

687687
// Backup plan if list is empty
688688
if ( outResult.empty () )
689-
outResult.push_back ( "http://1mgg.com/affil/mta" );
689+
outResult.push_back ( SERVER_LIST_MASTER_URL );
690690
}
691691

692692

MTA10/loader/MainFunctions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,19 @@ void HandleNotUsedMainMenu ( void )
341341
FileLoad( strCoreConfigFilename, strCoreConfig );
342342
SString strWindowed = strCoreConfig.SplitRight( "<display_windowed>" ).Left( 1 );
343343
SString strFullscreenStyle = strCoreConfig.SplitRight( "<display_fullscreen_style>" ).Left( 1 );
344+
if ( strFullscreenStyle == "1" )
345+
{
346+
AddReportLog( 9315, "Loader - HandleNotUsedMainMenu - Already Borderless window" );
347+
return;
348+
}
344349
if ( !strWindowed.empty() && !strFullscreenStyle.empty())
345350
{
346351
if ( strWindowed == "0" && strFullscreenStyle == "0" ) // 0=FULLSCREEN_STANDARD
347352
{
348353
// Inform user
349354
SString strMessage = _("Are you having problems running MTA:SA?.\n\nDo you want to change the following setting?");
350355
strMessage += "\n" + _("Fullscreen mode:") + " -> " + _("Borderless window");
356+
HideSplash();
351357
int iResponse = MessageBoxUTF8 ( NULL, strMessage, "MTA: San Andreas", MB_YESNO | MB_ICONQUESTION | MB_TOPMOST );
352358
if ( iResponse == IDYES )
353359
{

MTA10/mods/shared_logic/CClientDFF.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@ void CClientDFF::UnloadDFF ( void )
118118

119119

120120
bool CClientDFF::ReplaceModel ( unsigned short usModel, bool bAlphaTransparency )
121+
{
122+
// Record attempt in case it all goes wrong
123+
CArgMap argMap;
124+
argMap.Set( "id", usModel );
125+
argMap.Set( "reason", "ReplaceModel" );
126+
SetApplicationSetting( "diagnostics", "gta-model-fail", argMap.ToString() );
127+
128+
bool bResult = DoReplaceModel( usModel, bAlphaTransparency );
129+
130+
SetApplicationSetting( "diagnostics", "gta-model-fail", "" );
131+
return bResult;
132+
}
133+
134+
135+
bool CClientDFF::DoReplaceModel ( unsigned short usModel, bool bAlphaTransparency )
121136
{
122137
if ( !CClientDFFManager::IsReplacableModel( usModel ) )
123138
return false;

MTA10/mods/shared_logic/CClientDFF.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class CClientDFF : public CClientEntity
5353
void SetPosition ( const CVector& vecPosition ) {};
5454

5555
protected:
56+
bool DoReplaceModel ( unsigned short usModel, bool bAlphaTransparency );
5657
void UnloadDFF ( void );
5758
void InternalRestoreModel ( unsigned short usModel );
5859

Shared/sdk/SharedUtil.Misc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ namespace SharedUtil
193193
// Version string things
194194
bool IsValidVersionString ( const SString& strVersion );
195195
SString ExtractVersionStringBuildNumber ( const SString& strVersion );
196-
SString ConformVersionStringToBaseVersion ( const SString& strVersion, const SString& strBaseVersion );
197196

198197
//
199198
// Try to make a path relative to the 'resources/' directory

Shared/sdk/SharedUtil.Misc.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,17 +1368,6 @@ SString SharedUtil::ExtractVersionStringBuildNumber( const SString& strVersion )
13681368
}
13691369

13701370

1371-
// Replace major/minor/type to match current configuration
1372-
SString SharedUtil::ConformVersionStringToBaseVersion( const SString& strVersion, const SString& strBaseVersion )
1373-
{
1374-
SString strResult = strVersion;
1375-
strResult[0] = strBaseVersion[0]; // Major
1376-
strResult[2] = strBaseVersion[2]; // Minor
1377-
strResult[6] = strBaseVersion[6]; // Type
1378-
return strResult;
1379-
}
1380-
1381-
13821371
//
13831372
// Try to make a path relative to the 'resources/' directory
13841373
//

0 commit comments

Comments
 (0)