* Reduces natives called in hotkey_service::wndproc to prevent collisions.
* Removed debug code from carmod_shop::STAT_GET_INT
* Fixed #2152.
* Added sanity check to script thread in hotkey_service::wndproc.
Made is_mp_chat_active atomic to ensure cache coherence.
* Closes #2164
This commit is contained in:
gir489
2023-09-20 10:27:39 -04:00
committed by GitHub
parent 1817ee9fda
commit 04cfa46d78
6 changed files with 26 additions and 4 deletions

View File

@ -88,7 +88,17 @@ namespace big
if (g.cmd_executor.enabled)
return;
if (g_gui->is_open() || *g_pointers->m_gta.m_is_social_club_overlay_active || SCRIPT::GET_NUMBER_OF_THREADS_RUNNING_THE_SCRIPT_WITH_THIS_HASH(RAGE_JOAAT("cellphone_flashhand")) > 0 || HUD::IS_MP_TEXT_CHAT_TYPING())
bool is_using_cellphone = false;
for (auto script : *g_pointers->m_gta.m_script_threads)
{
if (script && script->m_script_hash == RAGE_JOAAT("cellphone_flashhand"))
{
is_using_cellphone = script->m_context.m_state == rage::eThreadState::running;
}
}
if (g_gui->is_open() || *g_pointers->m_gta.m_is_social_club_overlay_active || is_using_cellphone
|| g.settings.hotkeys.is_mp_chat_active)
return;
if (state == eKeyState::RELEASE || state == eKeyState::DOWN)