Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/lithium/extensions/client/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ function cam.Start3D(pos, ang, fov, x, y, w, h, znear, zfar)
tab.fov = fov

if isnumber(x) and isnumber(y) and isnumber(w) and isnumber(h) then
tab.x, tab.y, tab.w, tab.hm, tab.aspect = x, y, w, h, (w / h)
tab.x, tab.y, tab.w, tab.h, tab.aspect = x, y, w, h, (w / h)
else
tab.x, tab.y, tab.w, tab.hm, tab.aspect = nil, nil, nil, nil, nil
tab.x, tab.y, tab.w, tab.h, tab.aspect = nil, nil, nil, nil, nil
end

if isnumber(znear) and isnumber(zfar) then
Expand Down Expand Up @@ -70,4 +70,4 @@ function render.Model(tbl, ent)
ENTITY_SetPos(ent, tbl.pos or vector_origin)
ENTITY_SetAngles(ent, tbl.angle or angle_zero)
ENTITY_DrawModel(ent)
end
end