09-12-2008, 05:22 AM
Here's some optimizations...
Should be:
And here's this:
Code:
If Not IsConnected Then InGame = Not InGame
Should be:
Code:
InGame =IsConnected
And here's this:
Code:
Private Function NeedToRestoreSurfaces() As Boolean
NeedToRestoreSurfaces = True
If DD.TestCooperativeLevel = DD_OK Then NeedToRestoreSurfaces = False
End Function