write masks, colours and hash constants in hex
sexc reads hex literals now (sex#47). The OpenSimplex constants are spelled as the C# spells them, and the colours as the comments that stood in for them did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -416,9 +416,7 @@
|
||||
(var val int (cast (cast c int) u8))
|
||||
(if (== val 0)
|
||||
(return 0))
|
||||
;; TODO sex#47: write the masks (0xFF0000, 0xFF00) in hex once there
|
||||
;; are hex literals.
|
||||
(return (c-bit-or val (max4 lt rt lb rb 16711680) (max4 lt rt lb rb 65280))))
|
||||
(return (c-bit-or val (max4 lt rt lb rb 0xFF0000) (max4 lt rt lb rb 0xFF00))))
|
||||
|
||||
;;; MapLayerOre.GenLayer.
|
||||
(fn gen-unwobbled ((m (* const mineral)) (x0 int) (z0 int) (size-x int) (size-z int)
|
||||
|
||||
Reference in New Issue
Block a user