… | |
… | |
397 | * it, so check if there are any other members and if not, delete the party |
397 | * it, so check if there are any other members and if not, delete the party |
398 | */ |
398 | */ |
399 | player_count = 0; |
399 | player_count = 0; |
400 | if (oldparty) |
400 | if (oldparty) |
401 | { |
401 | { |
402 | for (pl = first_player; pl->next != NULL; pl = pl->next) |
402 | for_all_players (pl) |
403 | { |
|
|
404 | if (pl->party == oldparty) |
403 | if (pl->party == oldparty) |
405 | player_count++; |
404 | player_count++; |
406 | } |
405 | |
407 | if (player_count == 0) |
406 | if (player_count == 0) |
408 | remove_party (oldparty); |
407 | remove_party (oldparty); |
409 | } |
408 | } |
|
|
409 | |
410 | return 0; |
410 | return 0; |
411 | } /* form */ |
411 | } /* form */ |
412 | |
412 | |
413 | if (strcmp (params, "leave") == 0) |
413 | if (strcmp (params, "leave") == 0) |
414 | { |
414 | { |