equal
deleted
inserted
replaced
331 flib_team_destroy(team); |
331 flib_team_destroy(team); |
332 conn->netconnState = NETCONN_STATE_DISCONNECTED; |
332 conn->netconnState = NETCONN_STATE_DISCONNECTED; |
333 conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_INTERNAL_ERROR, "Internal error"); |
333 conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_INTERNAL_ERROR, "Internal error"); |
334 exit = true; |
334 exit = true; |
335 } else { |
335 } else { |
336 team->remoteDriven = true; |
|
337 conn->onTeamAddCb(conn->onTeamAddCtx, team); |
336 conn->onTeamAddCb(conn->onTeamAddCtx, team); |
338 } |
337 } |
339 } |
338 } |
340 } else if (!strcmp(cmd, "REMOVE_TEAM")) { |
339 } else if (!strcmp(cmd, "REMOVE_TEAM")) { |
341 if(netmsg->partCount != 2 || conn->netconnState!=NETCONN_STATE_ROOM) { |
340 if(netmsg->partCount != 2 || conn->netconnState!=NETCONN_STATE_ROOM) { |