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

Deleted deprecated VersionOk function #585

Merged
merged 2 commits into from
May 11, 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
17 changes: 0 additions & 17 deletions Codigo/Admin.bas
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,6 @@ Public IpList As New Collection

Public Baneos As New Collection

'Public ResetThread As New clsThreading

Function VersionOK(ByVal Ver As String) As Boolean

On Error GoTo VersionOK_Err

100 VersionOK = (Ver = ULTIMAVERSION)


Exit Function

VersionOK_Err:
102 Call TraceError(Err.Number, Err.Description, "Admin.VersionOK", Erl)


End Function

Sub ReSpawnOrigPosNpcs()
On Error GoTo Handler
Dim i As Integer
Expand Down
18 changes: 0 additions & 18 deletions Codigo/Protocol.bas
Original file line number Diff line number Diff line change
Expand Up @@ -1083,13 +1083,6 @@ Private Sub HandleLoginExistingChar(ByVal ConnectionId As Long)
UserList(UserIndex).public_key = mid$(decrypted_session_token, 1, 16)

user_name = AO20CryptoSysWrapper.DECRYPT(cnvHexStrFromString(UserList(UserIndex).public_key), encrypted_username)
#If DEBUGGING = False Then
If Not VersionOK(Version) Then
Call WriteShowMessageBox(UserIndex, "Esta versión del juego es obsoleta, la versión correcta es la " & ULTIMAVERSION & ". Ejecute el launcher por favor.")
Call CloseSocket(UserIndex)
Exit Sub
End If
#End If

If Not EntrarCuenta(UserIndex, CuentaEmail, MD5) Then
Call CloseSocket(UserIndex)
Expand Down Expand Up @@ -1194,17 +1187,6 @@ Private Sub HandleLoginNewChar(ByVal ConnectionId As Long)

End If

#If DEBUGGING = False Then

142 If Not VersionOK(Version) Then
144 Call WriteShowMessageBox(UserIndex, "Esta versión del juego es obsoleta, la versión correcta es la " & ULTIMAVERSION & ". Ejecute el launcher por favor.")
146 Call CloseSocket(UserIndex)
Exit Sub

End If

#End If

148 If EsGmChar(UserName) Then

150 If AdministratorAccounts(UCase$(UserName)) <> UCase$(CuentaEmail) Then
Expand Down
1 change: 0 additions & 1 deletion Example.Server.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Hide=0
MaxConexionesIP=3
MaxUsersPorCuenta=3
IdleLimit=10
Version=2.0.4
IniciarDesdeBackUp=0
PuedeCrearPersonajes=1
ServerSoloGMs=0
Expand Down