From 8114e8920b56b4f078d2b3ff8d283cdf4d18c679 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 15 Jan 2009 19:14:17 -0800 Subject: [PATCH 1/1] 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. --- include/output.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) 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 "