update comment about off-by-1 error
This commit is contained in:
parent
afa1f22170
commit
33fede4ed8
@ -378,8 +378,10 @@ function drawhud()
|
||||
else
|
||||
vertmeter(115,58,118,117,primary_ship.xp, primary_ship.xptarget, powcols)
|
||||
end
|
||||
-- 59 px vertically? or 60? off-by-1 error somewhere here or in vertmeter?
|
||||
-- it's here. I think
|
||||
-- 60 px vertically. note that
|
||||
-- there was at one point an
|
||||
-- off-by-one and I'm not sure
|
||||
-- it's actually fixed
|
||||
local mxs, cs, mxh, ch = primary_ship.maxshield, primary_ship.shield, primary_ship.maxhp, primary_ship.hp
|
||||
if (mxs > 0) and (mxh > 0) then
|
||||
local split = 59 * (mxs / (mxs + mxh)) \ 1 + 64
|
||||
|
Loading…
x
Reference in New Issue
Block a user