Skip to content

Commit

Permalink
Disable red background if geometry limits are crossed in RED + update…
Browse files Browse the repository at this point in the history
… them
  • Loading branch information
rafalh committed Dec 10, 2024
1 parent a42be40 commit aeaf9d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Version 1.9.0 (not released yet)
- Add support for bluebeard.bty (sound config file) in mods
- Properly handle WM_PAINT in dedicated server, may improve performance (DF bug)
- Disable adding faces to fix PS2 tiling in editor
- Disable red background in log window if geometry limits are crossed in editor
- Update geometry limits in editor so they show static pools size (crossing it can have tiny performance impact)

[@GooberRF](https://github.com/GooberRF)
- Fix crash when `verify_level` command is run without a level being loaded
Expand Down
8 changes: 8 additions & 0 deletions editor_patch/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,14 @@ extern "C" DWORD DF_DLL_EXPORT Init([[maybe_unused]] void* unused)
AsmWriter{0x0043A081}.jmp(0x0043A0E9);
AsmWriter{0x0043A0EF}.nop(3);

// Display geometry limits according to pools sizes
write_mem<std::uint32_t>(0x0043A49D + 1, 30000);
write_mem<std::uint32_t>(0x0043A4C1 + 1, 150000);
write_mem<std::uint32_t>(0x0043A4E5 + 1, 50000);

// Disable red bacground if limits are crossed - dynamic allocation is used then
AsmWriter{0x0043A528, 0x0043A546}.nop();

return 1; // success
}

Expand Down

0 comments on commit aeaf9d1

Please sign in to comment.