Skip to content

The Qbug #32

Open
Open
@JackieJayhawk

Description

I recommend fixing the bug where the units cannot be replaced again using shortcuts (q) while the first attempt failed. Must click the thumbnail with cursor in order to place it. (Rambo fixed it IDK how. But I think this is the original game bug).

Suggesting method for fixing:
extern "C" declspec(naked) void cdecl _injectHotkeyFix()
{
static unsigned long jmp_addr = 0x004FB2E4;
static TechnoClass* pObject;
asm {
mov pObject, esi
pushad
}
pObject->ClearSidebarTabObject();
asm {
popad
jmp[jmp_addr]
}
}
rewriteAsJump(0x4ABBD5, (void*)(0x004ABBD5 + 7));
rewriteAsJump(0x4FB2DE, _injectHotkeyFix);

Resource: Some developer from CNC did this a while ago, but for some reason it was not advanced in the current updates.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions