From 4a068279a2f940f71bbb51b4b301552dc2b8393f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 14:30:58 +0000 Subject: [PATCH] Decompile fn_17789 (CLanguageBase::AdvanceCursor) Batch #13245 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17789 CLanguageBase::AdvanceCursor: logic confirmed by peer review Peer-reviewed-by: SapitoSucio, Tanke, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Input/Language.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Client/Input/Language.cpp b/Source/Client/Input/Language.cpp index c68fc816..d405650e 100644 --- a/Source/Client/Input/Language.cpp +++ b/Source/Client/Input/Language.cpp @@ -236,7 +236,7 @@ void CLanguageBase::AdvanceCursor(int delta) { this->cursor += delta; } - if (!static_cast(static_cast(GetKeyState(VK_SHIFT)) >> 8)) { + if (!HIBYTE(GetKeyState(VK_SHIFT))) { this->anchor = this->cursor; } }