pass the river colour as a conditional, with #line on every statement

A #line no longer lands inside a ?: (sex#54), so the build goes back
to statement-level directives, which is what lands a debugger on the
right line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 18:11:37 +03:00
parent e4ab3e875f
commit e0901f6c8a
2 changed files with 2 additions and 10 deletions

View File

@@ -128,11 +128,7 @@
(if (. m has-river-distance)
(do
(var d int [(. m river-distance) i])
;; TODO sex#54: pass the colour as an (if ...) argument to
;; .set once #line no longer splits it.
(var c u32 (grey (- 255 d)))
(if (== d 0) (= c 0x4060BF))
(.set (& river) x y c))
(.set (& river) x y (if (== d 0) 0x4060BF (grey (- 255 d)))))
(.set (& river) x y 0x202020)))))
(write-image (& height) dir "height")