ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_party.C
(Generate patch)

Comparing deliantra/server/server/c_party.C (file contents):
Revision 1.13 by pippijn, Sat Jan 6 14:42:30 2007 UTC vs.
Revision 1.14 by root, Sun Jan 7 02:39:14 2007 UTC

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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines