Skip to content

Commit b6940c7

Browse files
Merge branch 'master' into issue-9898
2 parents 4199171 + d34dd97 commit b6940c7

File tree

114 files changed

+1556
-970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1556
-970
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**MTA Client (please complete the following information):**
24+
- Version [e.g. 1.1, 1.5.4]
25+
- Running in Wine? [e.g, No, Yes - Linux, Yes - macOS]
26+
27+
**MTA Server (please complete the following information):**
28+
- OS: [e.g. Windows 7, Debian Stretch]
29+
- Version [e.g. 1.1, 1.5.4]
30+
31+
**Additional context**
32+
Add any other context about the problem here
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Security report
3+
about: Submit cheat or security vulnerability
4+
5+
---
6+
7+
Please submit your cheats or security vulnerabilities to @ccw on forum.mtasa.com. Please do not submit them here.
8+
9+
@ccw can be found here: https://forum.mtasa.com/profile/7264-ccw/

PULL_REQUEST_TEMPLATE.md renamed to .github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Only use pull requests to submit patches! Use [the bug tracker](https://bugs.multitheftauto.com) to report bugs, or [the forum](https://forum.mtasa.com) to ask for help!
2-
31
Before you go ahead and create a pull request, please make sure:
42

53
* [ ] [your code follows the coding guidelines](https://wiki.multitheftauto.com/index.php?title=Coding_guidelines)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Our project's code repository can be found on the [multitheftauto/mtasa-blue](https://github.com/multitheftauto/mtasa-blue/) Git repository at [GitHub](https://github.com/). We are always looking for new developers, so if you're interested, here are some useful links:
22

33
* [Nightly Builds](https://nightly.mtasa.com/)
4-
* [Bugtracker Roadmap](https://bugs.mtasa.com/roadmap_page.php)
4+
* [Issue Tracker](https://github.com/multitheftauto/mtasa-blue)
55
* [Wiki Roadmap](https://wiki.mtasa.com/wiki/Roadmap)
66

77
Before committing, please review the [coding guidelines](https://wiki.mtasa.com/index.php?title=Coding_guidelines).

Client/cefweb/CWebView.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void CWebView::Initialise()
5353
CefBrowserSettings browserSettings;
5454
browserSettings.windowless_frame_rate = g_pCore->GetFrameRateLimit();
5555
browserSettings.javascript_access_clipboard = cef_state_t::STATE_DISABLED;
56+
browserSettings.javascript_dom_paste = cef_state_t::STATE_DISABLED;
5657
browserSettings.universal_access_from_file_urls =
5758
cef_state_t::STATE_DISABLED; // Also filtered by resource interceptor, but set this nevertheless
5859
browserSettings.file_access_from_file_urls = cef_state_t::STATE_DISABLED;

Client/core/CChat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ bool CChat::CharacterKeyHandler(CGUIKeyEventArgs KeyboardArgs)
628628
}
629629

630630
// Check namepart
631-
if (!strPlayerName.BeginsWith(strPlayerNamePart))
631+
if (!RemoveColorCodes(strPlayerName).BeginsWith(strPlayerNamePart))
632632
continue;
633633
else
634634
{

Client/core/CClientVariables.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ void CClientVariables::ValidateValues(void)
252252
ClampValue("chat_position_vertical", Chat::Position::Vertical::TOP, Chat::Position::Vertical::BOTTOM);
253253
ClampValue("chat_text_alignment", Chat::Text::Align::LEFT, Chat::Text::Align::RIGHT);
254254
ClampValue("text_scale", 0.8f, 3.0f);
255+
ClampValue("mastervolume", 0.0f, 1.0f);
255256
ClampValue("mtavolume", 0.0f, 1.0f);
256257
ClampValue("voicevolume", 0.0f, 1.0f);
257258
ClampValue("mapalpha", 0, 255);
@@ -309,6 +310,7 @@ void CClientVariables::LoadDefaults(void)
309310
DEFAULT("fly_with_mouse", false); // flying with mouse controls
310311
DEFAULT("steer_with_mouse", false); // steering with mouse controls
311312
DEFAULT("classic_controls", false); // classic/standard controls
313+
DEFAULT("mastervolume", 1.0f); // master volume
312314
DEFAULT("mtavolume", 1.0f); // custom sound's volume
313315
DEFAULT("voicevolume", 1.0f); // voice chat output volume
314316
DEFAULT("mapalpha", 155); // map alpha
@@ -334,6 +336,7 @@ void CClientVariables::LoadDefaults(void)
334336
DEFAULT("multimon_fullscreen_minimize", 1); // 0-off 1-on
335337
DEFAULT("vertical_aim_sensitivity", 0.0015f); // 0.0015f is GTA default setting
336338
DEFAULT("process_priority", 0); // 0-normal 1-above normal 2-high
339+
DEFAULT("mute_master_when_minimized", 0); // 0-off 1-on
337340
DEFAULT("mute_sfx_when_minimized", 0); // 0-off 1-on
338341
DEFAULT("mute_radio_when_minimized", 0); // 0-off 1-on
339342
DEFAULT("mute_mta_when_minimized", 0); // 0-off 1-on

Client/core/CConnectManager.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CCONNECTMANAGER_H
13-
#define __CCONNECTMANAGER_H
12+
#pragma once
1413

1514
#include <ctime>
1615
#include <gui/CGUI.h>
17-
#include <Serverbrowser/CServerInfo.h>
16+
#include <ServerBrowser/CServerInfo.h>
1817

1918
class CConnectManager
2019
{
@@ -61,5 +60,3 @@ class CConnectManager
6160

6261
bool CheckNickProvided(const char* szNick);
6362
};
64-
65-
#endif

Client/core/CConsoleLogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct
2323
uint uiNumBlanks;
2424
const char* szDelim;
2525
const char* szText;
26-
} g_WordsToCheck[] = {
26+
} const g_WordsToCheck[] = {
2727
{2, "", "login "}, {2, "", "register "}, {2, "", "addaccount "}, {2, "", "chgpass "}, {2, "", "chgmypass "}, {1, "'", "password"},
2828
};
2929

0 commit comments

Comments
 (0)