equal
deleted
inserted
replaced
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; |