Conversation
WalkthroughAdds a new public function gui_update_minimap_pos for rendering a per-room overlay on the minimap. Updates gui_update_minimap to reset the render target. Integrates gui_update_minimap_pos into the main update loop to refresh the overlay each cycle. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Player
participant GameLoop as run_game_update
participant GUI as GUI
participant Renderer as Render Target
Player->>GameLoop: Tick
GameLoop->>GameLoop: map_clear_expired_entities()
GameLoop->>GameLoop: repopulate_roommatrix()
GameLoop->>GUI: gui_update_minimap()
GUI->>Renderer: setTarget(miniMap texture)
GUI->>Renderer: draw full minimap
GUI->>Renderer: setTarget(NULL)
GameLoop->>GUI: gui_update_minimap_pos()
GUI->>Renderer: setTarget(miniMapOverlay texture)
GUI->>Renderer: clear transparent + draw room overlay
GUI->>Renderer: setTarget(NULL)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (2)src/main.c (2)
src/gui.h (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
It would only update when entering a previously unvisited room. This is fixed now.
It would only update when entering a previously unvisited room. This is
fixed now.
Summary by CodeRabbit