Skip to content

Commit 9d5ab5d

Browse files
authored
Merge branch 'master' into fix/explosion-trigger-clientside
2 parents 1278d7a + a49ce03 commit 9d5ab5d

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

Client/game_sa/CPoolsSA.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "CWorldSA.h"
2727

2828
#include "enums/VehicleClass.h"
29+
#include <new>
2930

3031
extern CGameSA* pGame;
3132

@@ -242,7 +243,7 @@ CObject* CPoolsSA::AddObject(CClientObject* pClientObject, DWORD dwModelID, bool
242243

243244
if (m_objectPool.ulCount < MAX_OBJECTS)
244245
{
245-
pObject = new CObjectSA(dwModelID, bBreakingDisabled);
246+
pObject = new (std::nothrow) CObjectSA(dwModelID, bBreakingDisabled);
246247

247248
if (pObject && AddObjectToPool(pClientObject, pObject))
248249
{

Client/loader/Dialogs.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ const SDialogItemInfo g_NoAvDialogItems[] = {
101101
_td("MTA could not detect an anti-virus on your PC.\n\n"
102102
"Viruses interfere with MTA and degrade your gameplay experience.\n\n"
103103
"Press 'Help' for more information.")},
104-
{IDC_NOAV_OPT_SKIP, 0, _td("I have already installed an anti-virus")},
105-
{IDC_NOAV_OPT_BOTNET, 0,
104+
{IDC_NOAV_OPT_SKIP, 1, _td("I have already installed an anti-virus")},
105+
{IDC_NOAV_OPT_BOTNET, 1,
106106
_td("I will not install an anti-virus.\n"
107107
"I want my PC to lag and be part of a botnet.")},
108108
{IDC_BUTTON_HELP, 0, dialogStringsHelp},
@@ -618,8 +618,12 @@ void ShowNoAvDialog(HINSTANCE hInstance, bool bEnableScaremongering)
618618
hwndNoAvDialog = CreateDialogW(hInstance, MAKEINTRESOURCEW(IDD_NOAV_DIALOG), 0, DialogProc);
619619
dassert((GetWindowLongW(hwndNoAvDialog, GWL_STYLE) & WS_VISIBLE) == 0); // Should be Visible: False
620620
InitDialogStrings(hwndNoAvDialog, g_NoAvDialogItems);
621-
ShowWindow(GetDlgItem(hwndNoAvDialog, IDC_NOAV_OPT_SKIP), bEnableScaremongering ? SW_HIDE : SW_SHOW);
622-
ShowWindow(GetDlgItem(hwndNoAvDialog, IDC_NOAV_OPT_BOTNET), bEnableScaremongering ? SW_SHOW : SW_HIDE);
621+
const int textSourceItemId = bEnableScaremongering ? IDC_NOAV_OPT_BOTNET : IDC_NOAV_OPT_SKIP;
622+
{
623+
wchar_t text[256] = {};
624+
GetWindowTextW(GetDlgItem(hwndNoAvDialog, textSourceItemId), text, _countof(text));
625+
SetWindowTextW(GetDlgItem(hwndNoAvDialog, IDC_CHECK_NOT_AGAIN), text);
626+
}
623627
}
624628
ShowWindow(hwndNoAvDialog, SW_SHOW); // Show after all changes are complete
625629
SetForegroundWindow(hwndNoAvDialog);

Shared/data/MTA San Andreas/MTA/locale/en_US/client.pot

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: MTA San Andreas 1.x\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-08-08 18:21+0000\n"
11+
"POT-Creation-Date: 2025-08-11 18:27+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -2832,11 +2832,11 @@ msgid ""
28322832
"or try running the update with administrator rights."
28332833
msgstr ""
28342834

2835-
#: Client/loader/Install.cpp:852 Client/loader/Dialogs.cpp:689
2835+
#: Client/loader/Install.cpp:852 Client/loader/Dialogs.cpp:693
28362836
msgid "Installing update..."
28372837
msgstr ""
28382838

2839-
#: Client/loader/Install.cpp:934 Client/loader/Dialogs.cpp:697
2839+
#: Client/loader/Install.cpp:934 Client/loader/Dialogs.cpp:701
28402840
msgid "Extracting files..."
28412841
msgstr ""
28422842

@@ -3099,19 +3099,19 @@ msgstr ""
30993099
msgid "Error loading %s module! (%s)"
31003100
msgstr ""
31013101

3102-
#: Client/loader/Utils.cpp:1391 Client/loader/Dialogs.cpp:702
3102+
#: Client/loader/Utils.cpp:1391 Client/loader/Dialogs.cpp:706
31033103
msgid "Copying files..."
31043104
msgstr ""
31053105

3106-
#: Client/loader/Utils.cpp:1451 Client/loader/Dialogs.cpp:707
3106+
#: Client/loader/Utils.cpp:1451 Client/loader/Dialogs.cpp:711
31073107
msgid "Copy finished early. Everything OK."
31083108
msgstr ""
31093109

3110-
#: Client/loader/Utils.cpp:1457 Client/loader/Dialogs.cpp:712
3110+
#: Client/loader/Utils.cpp:1457 Client/loader/Dialogs.cpp:716
31113111
msgid "Finishing..."
31123112
msgstr ""
31133113

3114-
#: Client/loader/Utils.cpp:1459 Client/loader/Dialogs.cpp:716
3114+
#: Client/loader/Utils.cpp:1459 Client/loader/Dialogs.cpp:720
31153115
msgid "Done!"
31163116
msgstr ""
31173117

@@ -3287,11 +3287,11 @@ msgid ""
32873287
"I want my PC to lag and be part of a botnet."
32883288
msgstr ""
32893289

3290-
#: Client/loader/Dialogs.cpp:678
3290+
#: Client/loader/Dialogs.cpp:682
32913291
msgid "Searching for Grand Theft Auto San Andreas"
32923292
msgstr ""
32933293

3294-
#: Client/loader/Dialogs.cpp:681
3294+
#: Client/loader/Dialogs.cpp:685
32953295
msgid "Please start Grand Theft Auto San Andreas"
32963296
msgstr ""
32973297

0 commit comments

Comments
 (0)