Skip to content

Commit ba6674d

Browse files
committed
Highlight special lines
1 parent 695948d commit ba6674d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/Lua/Doom/things-lines.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,21 @@ local function iterate()
193193
if id == OUT_OF_BOUNDS then break end
194194

195195
if id ~= NULL_OBJECT then
196+
local special = rws(addr+LineOffsets.special, "Lines")
196197
local v1 = { x = rls(addr+LineOffsets.v1_x, "Lines"),
197198
y = -rls(addr+LineOffsets.v1_y, "Lines") }
198199
local v2 = { x = rls(addr+LineOffsets.v2_x, "Lines"),
199200
y = -rls(addr+LineOffsets.v2_y, "Lines") }
201+
202+
local color
203+
if special ~= 0 then color = 0xffcc00ff end
204+
200205
line(
201206
mapify_x(v1.x),
202207
mapify_y(v1.y),
203208
mapify_x(v2.x),
204209
mapify_y(v2.y),
205-
0xffcccccc)
210+
color or 0xffcccccc)
206211
end
207212
end
208213
end

0 commit comments

Comments
 (0)