We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695948d commit ba6674dCopy full SHA for ba6674d
Assets/Lua/Doom/things-lines.lua
@@ -193,16 +193,21 @@ local function iterate()
193
if id == OUT_OF_BOUNDS then break end
194
195
if id ~= NULL_OBJECT then
196
+ local special = rws(addr+LineOffsets.special, "Lines")
197
local v1 = { x = rls(addr+LineOffsets.v1_x, "Lines"),
198
y = -rls(addr+LineOffsets.v1_y, "Lines") }
199
local v2 = { x = rls(addr+LineOffsets.v2_x, "Lines"),
200
y = -rls(addr+LineOffsets.v2_y, "Lines") }
201
+
202
+ local color
203
+ if special ~= 0 then color = 0xffcc00ff end
204
205
line(
206
mapify_x(v1.x),
207
mapify_y(v1.y),
208
mapify_x(v2.x),
209
mapify_y(v2.y),
- 0xffcccccc)
210
+ color or 0xffcccccc)
211
end
212
213
0 commit comments