- 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:
olsner
2004-09-21 14:40:43 +00:00
parent 6787a32b3c
commit 777f06143d
20 changed files with 245 additions and 96 deletions
+5
View File
@@ -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);