Quit battle if versions don't match

This commit is contained in:
JappaWakka 2023-06-04 11:47:52 +02:00
parent 9aa43a95a4
commit 0600eb4d35
1 changed files with 6 additions and 0 deletions

View File

@ -348,6 +348,12 @@
If GameController.RELEASEVERSION = _oppGameVersion Then
_startNow = True
Else
Core.ServersManager.ServerConnection.SendPackage(New Servers.Package(Servers.Package.PackageTypes.BattleQuit, Core.ServersManager.ID, Servers.Package.ProtocolTypes.TCP, PartnerNetworkID.ToString()))
Dim s As Screen = CurrentScreen
While s.Identification <> Identifications.OverworldScreen
s = s.PreScreen
End While
Core.SetScreen(s)
TextBox.Show("Game versions don't match.")
End If
Else