Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove popups from RED that prevent user from navigating between modes until rebuilding geometry #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Version 1.9.0 (not released yet)
- Add mod name to main menu
- Make value of `spectate_mode_minimal_ui` persist between game launches
- Add `version` command
- Remove level editor popups that stop user from navigating between modes until rebuilding

[@is-this-c](https://github.com/is-this-c)
- Support `©` in TrueType fonts
Expand Down
10 changes: 10 additions & 0 deletions editor_patch/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,16 @@ extern "C" DWORD DF_DLL_EXPORT Init([[maybe_unused]] void* unused)
// Disable red bacground if limits are crossed - dynamic allocation is used then
AsmWriter{0x0043A528, 0x0043A546}.nop();

// Remove "You must rebuild geometry before leaving group mode" popups
AsmWriter(0x0042645E).jmp(0x00426486);
AsmWriter(0x004263D1).jmp(0x004263F9);
AsmWriter(0x0042637A).jmp(0x004263A2);
AsmWriter(0x0042631C).jmp(0x00426344);
AsmWriter(0x004262E2).jmp(0x0042630A);

// Remove "You must rebuild geometry before texturing brushes" popup
AsmWriter(0x0042642E).jmp(0x00426456);

return 1; // success
}

Expand Down