project_files/frontlib/net/netprotocol.c
changeset 7566 57d343ee382f
parent 7497 7e1d72fc03c7
child 10017 de822cd3df3a
equal deleted inserted replaced
7563:09a44c8fbfba 7566:57d343ee382f
    55 		hog->hat = flib_strdupnull(parts[8+2*i]);
    55 		hog->hat = flib_strdupnull(parts[8+2*i]);
    56 		if(!hog->name || !hog->hat) {
    56 		if(!hog->name || !hog->hat) {
    57 			return -1;
    57 			return -1;
    58 		}
    58 		}
    59 	}
    59 	}
       
    60 
       
    61 	// Set some default assumptions as well
       
    62 	team->colorIndex = DEFAULT_COLOR_INDEX;
       
    63 	team->hogsInGame = DEFAULT_HEDGEHOG_COUNT;
       
    64 	team->remoteDriven = true;
    60 	return 0;
    65 	return 0;
    61 }
    66 }
    62 
    67 
    63 flib_team *flib_team_from_netmsg(char **parts) {
    68 flib_team *flib_team_from_netmsg(char **parts) {
    64 	flib_team *result = NULL;
    69 	flib_team *result = NULL;