Skip to content

Commit

Permalink
fix lobby chat not showing last message
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t committed Apr 2, 2022
1 parent 4140984 commit be0a216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ui/lobby/lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@ function CreateUI(maxPlayers)
top = math.floor(top)
if top == self.top then return end
local delta = self:GetScrollLastPage()
self.top = math.max( math.min(delta, top), 1)
self.top = math.max(math.min(delta + 1, top), 1)
self.bottom = self.top + self.linesPerScrollPage
GUI.chatDisplay:ShowLines(self.top, self.bottom)
if self.top >= delta + 1 then
Expand Down

0 comments on commit be0a216

Please sign in to comment.