project_files/frontlib/net/netprotocol.c
changeset 7320 e704706008d4
parent 7314 6171f0bad318
child 7338 1ed603a54ebd
--- a/project_files/frontlib/net/netprotocol.c	Thu Jul 05 22:22:48 2012 +0200
+++ b/project_files/frontlib/net/netprotocol.c	Tue Jul 10 19:33:57 2012 +0200
@@ -62,7 +62,7 @@
 
 flib_team *flib_team_from_netmsg(char **parts) {
 	flib_team *result = NULL;
-	flib_team *tmpTeam = flib_team_retain(flib_calloc(1, sizeof(flib_team)));
+	flib_team *tmpTeam = flib_calloc(1, sizeof(flib_team));
 	if(tmpTeam) {
 		if(!fillTeamFromMsg(tmpTeam, parts)) {
 			result = tmpTeam;
@@ -71,12 +71,12 @@
 			flib_log_e("Error parsing team from net.");
 		}
 	}
-	flib_team_release(tmpTeam);
+	flib_team_destroy(tmpTeam);
 	return result;
 }
 
-flib_cfg *flib_netmsg_to_cfg(flib_cfg_meta *meta, char **parts) {
-	flib_cfg *result = flib_cfg_create(meta, parts[0]);
+flib_scheme *flib_netmsg_to_cfg(flib_metascheme *meta, char **parts) {
+	flib_scheme *result = flib_scheme_create(meta, parts[0]);
 	if(result) {
 		for(int i=0; i<meta->modCount; i++) {
 			result->mods[i] = !strcmp(parts[i+1], "true");