| Mirage Source http://web.miragesource.net/forums/ |
|
| Shutdown Client http://web.miragesource.net/forums/viewtopic.php?f=210&t=3493 |
Page 1 of 1 |
| Author: | William [ Sun Mar 16, 2008 5:12 pm ] |
| Post subject: | Shutdown Client |
At the bottom of Sub Gameloop client side, you will see this: Code: frmMirage.Visible = False frmSendGetData.Visible = True Call SetStatus("Destroying game data...") ' Shutdown the game Call GameDestroy ' Report disconnection if server disconnects If IsConnected = False Then Call MsgBox("Thank you for playing " & GAME_NAME & "!", vbOKOnly, GAME_NAME) End If End Sub The: Code: ' Shutdown the game Call GameDestroy Should be below: Code: ' Report disconnection if server disconnects If IsConnected = False Then Call MsgBox("Thank you for playing " & GAME_NAME & "!", vbOKOnly, GAME_NAME) End If Like this: Code: frmMirage.Visible = False
frmSendGetData.Visible = True Call SetStatus("Destroying game data...") ' Report disconnection if server disconnects If IsConnected = False Then Call MsgBox("Thank you for playing " & GAME_NAME & "!", vbOKOnly, GAME_NAME) End If ' Shutdown the game Call GameDestroy End Sub |
|
| Author: | Asrrin29 [ Sun Mar 16, 2008 7:05 pm ] |
| Post subject: | Re: Shutdown Client |
Ya, I kept noticing that when I was fiddling around with keeping the client open after quiting from frmMirage. I wanted to allow players to come back to the character select screen without having to reopen the game. good find. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|