okay I special cased it

This commit is contained in:
Kistaro Windrider 2024-08-18 01:14:05 -07:00
parent 5dc259c094
commit 4f8b861cdb
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -368,7 +368,7 @@ function draw_gun_info(lbl,fgc,x,y,gun)
end end
function vertmeter(x0,y0,x1,y1,val,maxval,cols) function vertmeter(x0,y0,x1,y1,val,maxval,cols)
if (val <= 0) return if (val <= 0 or maxval <= 0) return
local h = y1-y0 local h = y1-y0
local px = -flr(-(h*val)\maxval) local px = -flr(-(h*val)\maxval)
local ncols = #cols local ncols = #cols