Merge pull request #91 from WantedDV/gametypes_hook

fix: removed hook that can crash when loading zone
This commit is contained in:
Louve 2024-03-30 11:24:47 +01:00 committed by GitHub
commit 4ec7aea6bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -847,11 +847,9 @@ namespace Components
// Always refresh arena when loading or unloading a zone
Utils::Hook::Nop(0x485017, 2);
Utils::Hook::Nop(0x4FD8C7, 2); // Gametypes
Utils::Hook::Nop(0x4BDFB7, 2); // Unknown
Utils::Hook::Nop(0x45ED6F, 2); // loadGameInfo
Utils::Hook::Nop(0x4A5888, 2); // UI_InitOnceForAllClients
// Allow hiding specific smodels
Utils::Hook(0x50E67C, Maps::HideModelStub, HOOK_CALL).install()->quick();