Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix meditar invi #530

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Codigo/ModAreas.bas
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Private Sub NotifyUser(ByVal UserNotificado As Integer, ByVal UserIngresante As
If sendChar Then
Call MakeUserChar(False, UserNotificado, UserIngresante, UserList(UserIngresante).Pos.map, UserList(UserIngresante).Pos.X, UserList(UserIngresante).Pos.y, 0)
If UserList(UserIngresante).flags.invisible Or UserList(UserIngresante).flags.Oculto Then
Call WriteSetInvisible(UserNotificado, UserList(UserIngresante).Char.charindex, True)
Call WriteSetInvisible(UserNotificado, UserIngresante, True)
End If
End If
End With
Expand Down
8 changes: 4 additions & 4 deletions Codigo/Protocol_Writes.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2861,17 +2861,17 @@ End Sub
' Writes the "SetInvisible" message to the given user's outgoing data .incomingData.
'
' @param UserIndex User to which the message is intended.
' @param CharIndex The char turning visible / invisible.
' @param TargetIndex The user turning visible / invisible.
' @param invisible True if the char is no longer visible, False otherwise.
' @remarks The data is not actually sent until the buffer is properly flushed.
Public Sub WriteSetInvisible(ByVal UserIndex As Integer, _
ByVal CharIndex As Integer, _
ByVal TargetIndex As Integer, _
ByVal invisible As Boolean)
'<EhHeader>
On Error GoTo WriteSetInvisible_Err
'</EhHeader>
100 Call modSendData.SendData(ToIndex, UserIndex, PrepareMessageSetInvisible(CharIndex, _
invisible, UserList(UserIndex).Pos.X, UserList(UserIndex).Pos.y))
100 Call modSendData.SendData(ToIndex, UserIndex, PrepareMessageSetInvisible(UserList(TargetIndex).Char.charindex, _
invisible, UserList(TargetIndex).pos.x, UserList(TargetIndex).pos.y))
'<EhFooter>
Exit Sub

Expand Down