From: Arun Persaud Date: Fri, 16 Jan 2009 03:14:17 +0000 (-0800) Subject: BUGFIX: better default for selecting players in a new game X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=8114e8920b56b4f078d2b3ff8d283cdf4d18c679;ds=sidebyside BUGFIX: better default for selecting players in a new game the player is now automatically on pos 4 and the other positions are filled randomly. Also make sure that no player shows up more than once. --- diff --git a/include/output.php b/include/output.php index f694c5b..9564b82 100644 --- a/include/output.php +++ b/include/output.php @@ -28,6 +28,10 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) function output_form_for_new_game($names) { + $copy_names = $names; /* local copy, so that we can delete names from it + * after we selected them to make sure that each name + * only shows up once + */ ?>

Select players (Remember: you need to be one of the players)

@@ -35,13 +39,27 @@ function output_form_for_new_game($names)
table \n"; $i++; echo "