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).
This commit is contained in:
ragnarok-clanker 2026-11-06 14:30:58 +00:00
commit 4a068279a2

View file

@ -236,7 +236,7 @@ void CLanguageBase::AdvanceCursor(int delta) {
this->cursor += delta;
}
if (!static_cast<unsigned char>(static_cast<unsigned short>(GetKeyState(VK_SHIFT)) >> 8)) {
if (!HIBYTE(GetKeyState(VK_SHIFT))) {
this->anchor = this->cursor;
}
}