Skip to content

Commit

Permalink
Merge branch 'master' into 200523_NewAccountEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
TracerDS authored Jan 15, 2024
2 parents a8708f1 + 0f2bfc8 commit f1b1075
Show file tree
Hide file tree
Showing 202 changed files with 12,789 additions and 10,760 deletions.
6 changes: 2 additions & 4 deletions Client/game_sa/CStreamingSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ void CStreamingSA::RemoveArchive(unsigned char ucArchiveID)

bool CStreamingSA::SetStreamingBufferSize(uint32 numBlocks)
{
numBlocks += numBlocks % 2; // Make sure number is even by "rounding" it upwards. [Otherwise it can't be split in half properly]

// Check if the size is the same already
if (numBlocks == ms_streamingHalfOfBufferSizeBlocks * 2)
return true;
Expand All @@ -453,10 +455,6 @@ bool CStreamingSA::SetStreamingBufferSize(uint32 numBlocks)

// Suspend streaming thread [otherwise data might become corrupted]
SuspendThread(*phStreamingThread);

// Create new buffer
if (numBlocks & 1) // Make it be even [Otherwise it can't be split in half properly]
numBlocks++;

// Calculate new buffer pointers
void* const pNewBuff0 = pNewBuffer;
Expand Down
4 changes: 2 additions & 2 deletions Client/loader/MainFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,10 @@ void CheckDataFiles()
{
const char* expected;
const char* fileName;
} integrityCheckList[] = {{"83BA751B80BB79133A861B06E82052AD", "bass.dll"}, {"FBE6A48C4E9FAAA6569C360DD49CCE06", "bass_aac.dll"},
} integrityCheckList[] = {{"DFACEEEB636240C0190C7B1B0145C89E", "bass.dll"}, {"FBE6A48C4E9FAAA6569C360DD49CCE06", "bass_aac.dll"},
{"E7E69A3B369F0ABA1A4A18C831BC4364", "bass_ac3.dll"}, {"8164042444F819CA107297CA4A0408F3", "bass_fx.dll"},
{"9F48DD702AB5BE002F9223E3B45A2261", "bassflac.dll"}, {"4E89426025D1E1F524495D910B60C709", "bassmidi.dll"},
{"D31DA7583083C1370F3C6B9C15F363CC", "bassmix.dll"}, {"2F87C5E0A1B7B28C8FC0D7E74116DDFC", "bassopus.dll"},
{"5DEEC10A943E352EF7E0223327E8B48C", "bassmix.dll"}, {"2F87C5E0A1B7B28C8FC0D7E74116DDFC", "bassopus.dll"},
{"0F1B2FC6C0C703A43A24DC05352E7ADA", "basswebm.dll"}, {"893113C6C49DC1E1EF288310E68DB306", "basswma.dll"},
{"C6A44FC3CF2F5801561804272217B14D", "D3DX9_42.dll"}, {"D439E8EDD8C93D7ADE9C04BCFE9197C6", "sa.dat"},
{"B33B21DB610116262D906305CE65C354", "D3DCompiler_42.dll"}, {"02ECD2919B3DAA59D6014EEFD29FC294", "tags.dll"},
Expand Down
23 changes: 22 additions & 1 deletion Client/mods/deathmatch/logic/CClientVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,8 @@ void CClientVehicle::SetWheelStatus(unsigned char ucWheel, unsigned char ucStatu
m_pVehicle->GetDamageManager()->SetWheelStatus((eWheelPosition)(ucWheel), ucGTAStatus);

// Update the wheel's visibility
m_pVehicle->SetWheelVisibility((eWheelPosition)ucWheel, (ucStatus != DT_WHEEL_MISSING));
m_pVehicle->SetWheelVisibility((eWheelPosition)ucWheel, ucStatus != DT_WHEEL_MISSING &&
(m_ComponentData.empty() || m_ComponentData[GetComponentNameForWheel(ucWheel)].m_bVisible));
}
else if (m_eVehicleType == CLIENTVEHICLE_BIKE && ucWheel < 2)
m_pVehicle->SetBikeWheelStatus(ucWheel, ucGTAStatus);
Expand All @@ -1473,6 +1474,26 @@ void CClientVehicle::SetWheelStatus(unsigned char ucWheel, unsigned char ucStatu
}
}

//
// Returns component name for eWheelPosition enum
//
SString CClientVehicle::GetComponentNameForWheel(unsigned char ucWheel) const noexcept
{
switch (ucWheel)
{
case FRONT_LEFT_WHEEL:
return "wheel_lf_dummy";
case FRONT_RIGHT_WHEEL:
return "wheel_rf_dummy";
case REAR_LEFT_WHEEL:
return "wheel_lb_dummy";
case REAR_RIGHT_WHEEL:
return "wheel_rb_dummy";
default:
return "";
}
}

//
// Returns true if wheel should be invisible because of its state
//
Expand Down
1 change: 1 addition & 0 deletions Client/mods/deathmatch/logic/CClientVehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ class CClientVehicle : public CClientStreamElement
int GetWheelFrictionState(unsigned char ucWheel);
unsigned char GetPanelStatus(unsigned char ucPanel);
unsigned char GetLightStatus(unsigned char ucLight);
SString GetComponentNameForWheel(unsigned char ucWheel) const noexcept;

bool AreLightsOn();

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Multi Theft Auto: San Andreas
## Multi Theft Auto: San Andreas

[![Build Status](https://github.com/multitheftauto/mtasa-blue/workflows/Build/badge.svg?event=push&branch=master)](https://github.com/multitheftauto/mtasa-blue/actions?query=branch%3Amaster+event%3Apush) [![Unique servers online](https://img.shields.io/endpoint?url=https%3A%2F%2Fmultitheftauto.com%2Fapi%2Fservers-shields.io.json)](https://community.multitheftauto.com/index.php?p=servers) [![Unique players online](https://img.shields.io/endpoint?url=https%3A%2F%2Fmultitheftauto.com%2Fapi%2Fplayers-shields.io.json)](https://multitheftauto.com) [![Unique players last 24 hours](https://img.shields.io/endpoint?url=https%3A%2F%2Fmultitheftauto.com%2Fapi%2Funique-players-shields.io.json)](https://multitheftauto.com) [![Discord](https://img.shields.io/discord/278474088903606273?label=discord&logo=discord)](https://discord.com/invite/mtasa) [![Crowdin](https://badges.crowdin.net/e/f5dba7b9aa6594139af737c85d81d3aa/localized.svg)](https://multitheftauto.crowdin.com/multitheftauto)

Expand Down
Binary file modified Shared/data/MTA San Andreas/MTA/bass.dll
Binary file not shown.
Binary file modified Shared/data/MTA San Andreas/MTA/bassmix.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions utils/buildactions/install_cef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ local CEF_URL_PREFIX = "https://cef-builds.spotifycdn.com/cef_binary_"
local CEF_URL_SUFFIX = "_windows32_minimal.tar.bz2"

-- Change here to update CEF version
local CEF_VERSION = "120.1.10+g3ce3184+chromium-120.0.6099.129"
local CEF_HASH = "95d549faf674983b189293212b09bb6137735483d17abcf9da0d1132864fa3be"
local CEF_VERSION = "120.2.5+g618ea46+chromium-120.0.6099.216"
local CEF_HASH = "d7179f98489d144a3e98e9e7ceaa225c0f9757224552ccea511114396893e779"

function make_cef_download_url()
return CEF_URL_PREFIX..http.escapeUrlParam(CEF_VERSION)..CEF_URL_SUFFIX
Expand Down
36 changes: 18 additions & 18 deletions utils/localization/generate-images/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/localization/generate-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@squoosh/lib": "~0.4.0",
"chromedriver": "^114.0.2",
"chromedriver": "^119.0.1",
"fs-extra": "^11.1.1",
"http-server": "^14.1.1",
"selenium-webdriver": "^4.10.0"
Expand Down
Loading

0 comments on commit f1b1075

Please sign in to comment.