mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 08:52:46 +00:00
- A lot of small network fixes
- Connecting client(s) to a server and giving orders to a shared set of entities now works - Yeah! - Removed thread sync from CNetServer This was SVN commit r1180.
This commit is contained in:
@@ -323,6 +323,11 @@ JSBool joinGame(JSContext* cx, JSObject* UNUSEDPARAM(globalObject), unsigned int
|
||||
connectPort=g_ScriptingHost.ValueToInt(argv[2]);
|
||||
}
|
||||
|
||||
if (g_Game)
|
||||
{
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
g_Game=new CGame();
|
||||
g_NetClient=new CNetClient(g_Game, &g_GameAttributes);
|
||||
g_NetClient->SetLoginInfo(username, password);
|
||||
|
||||
Reference in New Issue
Block a user