fix: Adjust CMake configuration and improve room loading logic

- Indented the inclusion of the net library in CMake for better readability.
- Updated room ID validation in DungeonEditorV2 to use a constant value for room limits.
- Enhanced the LoadDoors, LoadTorches, LoadBlocks, and LoadPits methods in the Room class to include detailed logging and improved data handling from ROM, preparing for future implementations of door, torch, block, and pit loading.
This commit is contained in:
scawful
2025-10-09 17:42:14 -04:00
parent e769cea1d9
commit 9675050b78
3 changed files with 157 additions and 22 deletions

View File

@@ -411,7 +411,7 @@ void DungeonEditorV2::DrawLayout() {
}
void DungeonEditorV2::DrawRoomTab(int room_id) {
if (room_id < 0 || room_id >= static_cast<int>(rooms_.size())) {
if (room_id < 0 || room_id >= 0x128) {
ImGui::Text("Invalid room ID: %d", room_id);
return;
}