project_files/frontlib/net/netconn.c
changeset 7314 6171f0bad318
parent 7275 15f722e0b96f
child 7316 f7b49b2c5d84
--- a/project_files/frontlib/net/netconn.c	Wed Jun 27 18:04:17 2012 +0200
+++ b/project_files/frontlib/net/netconn.c	Wed Jun 27 22:52:19 2012 +0200
@@ -175,7 +175,7 @@
 	}
 }
 
-flib_gamesetup *flib_netconn_create_gameSetup(flib_netconn *conn) {
+flib_gamesetup *flib_netconn_create_gamesetup(flib_netconn *conn) {
 	flib_gamesetup *result = NULL;
 	if(!conn) {
 		flib_log_e("null parameter in flib_netconn_create_gameSetup");
@@ -193,7 +193,7 @@
 					flib_team *copy = flib_team_copy(conn->teamlist.teams[i]);
 					if(copy) {
 						flib_team_set_weaponset(copy, conn->weaponset);
-						flib_team_set_health(copy, conn->scheme->settings[2]); // TODO by name
+						flib_team_set_health(copy, flib_cfg_get_setting(conn->scheme, "health", 100));
 						flib_teamlist_insert(result->teamlist, copy, result->teamlist->teamCount);
 					}
 					flib_team_release(copy);