Skip to content

fix: R_FindPlane aborts on visplane pool exhaustion - #162

Open
VedantMadane wants to merge 1 commit into
sunsided:mainfrom
VedantMadane:fix/issue-117
Open

fix: R_FindPlane aborts on visplane pool exhaustion#162
VedantMadane wants to merge 1 commit into
sunsided:mainfrom
VedantMadane:fix/issue-117

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

R_FindPlane aborts on visplane pool exhaustion

Changes

  • R_FindPlane calls i_error! on visplane pool exhaustion instead of returning null

Fixes #117

- R_FindPlane calls i_error! on visplane pool exhaustion instead of returning null

Fixes sunsided#117

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@VedantMadane
VedantMadane requested a review from sunsided as a code owner August 24, 2026 21:34
@github-actions github-actions Bot added the area-r_plane Area: r_plane label Aug 24, 2026
Comment thread room/src/doom/r_plane.rs
@@ -547,7 +548,7 @@ pub extern "C" fn R_ClearPlanes() {
/// and light level 0.
///
/// Returns a null pointer if the visplane pool (128 entries) is exhausted

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Stale doc comment — function no longer returns null on exhaustion

The function now aborts via i_error! when the visplane pool is exhausted, but this doc comment still claims it returns a null pointer. Update to reflect the actual behavior (e.g., "Aborts via i_error! if the visplane pool (128 entries) is exhausted").


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
room/src/doom/r_plane.rs 550 Stale doc comment — function no longer returns null on exhaustion
Files Reviewed (1 file)
  • room/src/doom/r_plane.rs — 1 issue

Fix these issues in Kilo Cloud


Reviewed by kimi-k2.6 · Input: 85.3K · Output: 12.1K · Cached: 276.1K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-r_plane Area: r_plane

Projects

None yet

Development

Successfully merging this pull request may close these issues.

r_plane: R_FindPlane returns null on pool exhaustion instead of calling I_Error

1 participant