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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user