Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit d45bbd8

Browse files
GacyrGacyr
authored andcommitted
Fix for visible inventory (4zK)
1 parent eb99b31 commit d45bbd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Base.rte/AI/HumanFunctions.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ function HumanFunctions.DoVisibleInventory(actor, showAll)
144144
local rotAng = actor.RotAngle + tallAng + (heldCount * tilt - itemCount * tilt + isFirearm /itemSize) /itemCount * actor.FlipFactor;
145145

146146
for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do
147-
local screen = ActivityMan:GetActivity():ScreenOfPlayer(actor.controller.Player);
148147
if not SceneMan:IsUnseen(drawPos.X, drawPos.Y, ActivityMan:GetActivity():GetTeamOfPlayer(player)) then
149-
PrimitiveMan:DrawBitmapPrimitive(screen, drawPos, item, rotAng, 0);
148+
PrimitiveMan:DrawBitmapPrimitive(ActivityMan:GetActivity():ScreenOfPlayer(player), drawPos, item, rotAng, 0);
150149
end
151150
end
152151
end

0 commit comments

Comments
 (0)