Add Disable Speed Bridging

This commit is contained in:
TheBrokenRail 2022-09-22 23:59:44 -04:00
parent 34ef2d51aa
commit 5739c5f999
2 changed files with 7 additions and 0 deletions

View File

@ -42,3 +42,4 @@ TRUE Classic HUD
TRUE Translucent Toolbar
FALSE Force EGL
TRUE Improved Classic Title Screen
FALSE Disable Speed Bridging

View File

@ -418,6 +418,12 @@ void init_misc() {
// Fix Graphics Bug When Switching To First-Person While Sneaking
patch_address(PlayerRenderer_render_vtable_addr, (void *) HumanoidMobRenderer_render_injection);
// Disable Speed Bridging
if (feature_has("Disable Speed Bridging", server_disabled)) {
unsigned char disable_speed_bridging_patch[4] = {0x03, 0x00, 0x53, 0xe1}; // "cmp r3, r3"
patch((void *) 0x494b4, disable_speed_bridging_patch);
}
// Init C++ And Logging
_init_misc_cpp();
_init_misc_logging();