Skip to content

Commit

Permalink
Enforce pointsstart-pointscont sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker committed Oct 10, 2023
1 parent 072cefe commit cf4edd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tptmp/client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ end
function client_i:handle_pointscont_43_()
local member = self:member_prefix_()
local x, y = self:read_xy_12_()
util.create_line_any(member.last_x, member.last_y, x, y, member.size_x, member.size_y, member.last_tool, member.shape, member, true)
if member.last_x then
util.create_line_any(member.last_x, member.last_y, x, y, member.size_x, member.size_y, member.last_tool, member.shape, member, true)
end
member.last_x = x
member.last_y = y
end
Expand Down
2 changes: 1 addition & 1 deletion tptmp/common/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ return {
-- ***********************************************************************

-- * Protocol version, between 0 and 254. 255 is reserved for future use.
version = 29,
version = 30,

-- * Client-to-server message size limit, between 0 and 255, the latter
-- limit being imposted by the protocol.
Expand Down

0 comments on commit cf4edd7

Please sign in to comment.