2
0
Эх сурвалжийг харах

Merge pull request #236 from Azaezel/alpha40_connectionCleanup

client cleanups
Brian Roberts 5 жил өмнө
parent
commit
70ea856574

+ 2 - 2
Templates/BaseGame/game/core/clientServer/scripts/client/connectionToServer.cs

@@ -104,12 +104,12 @@ function disconnect()
    // else physics resources will not cleanup properly.
    physicsStopSimulation( "client" );
 
+   disconnectedCleanup();
+
    // Delete the connection if it's still there.
    if (isObject(ServerConnection))
       ServerConnection.delete();
       
-   disconnectedCleanup();
-
    // Call destroyServer in case we're hosting
    destroyServer();
 }