diff options
author | Arun Persaud <arun@nubati.net> | 2010-03-13 15:59:07 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2010-03-13 16:05:39 -0800 |
commit | 850378a3e2da48d387dc565cc6e3c2b47f12e34d (patch) | |
tree | 440028bb1cdcdf1d00bb67b73319a047ec726c2b /include/newgame.php | |
parent | cf764594cd00e66ee812c5d63b016bf286178f67 (diff) | |
download | e-DoKo-850378a3e2da48d387dc565cc6e3c2b47f12e34d.tar.gz e-DoKo-850378a3e2da48d387dc565cc6e3c2b47f12e34d.tar.bz2 e-DoKo-850378a3e2da48d387dc565cc6e3c2b47f12e34d.zip |
NEW FEATURE: having only low trump (fox and below) can now be a Vorbehalt
The low trump can either be treated as poverty or similar to 5 nines, that is the game is canceled unless someone plays a solo.
Also minor code cleanup.
Diffstat (limited to 'include/newgame.php')
-rw-r--r-- | include/newgame.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/newgame.php b/include/newgame.php index d7a2d7f..f06bebe 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -40,7 +40,7 @@ else DB_update_user_timestamp($myid); - if( !myisset("PlayerA", "PlayerB","PlayerC","PlayerD","dullen","schweinchen","callrule" )) + if( !myisset("PlayerA", "PlayerB","PlayerC","PlayerD","dullen","schweinchen","callrule","lowtrump" )) { /* only get players that want to be in new games */ $names = DB_get_all_user_names_open_for_games(); @@ -80,6 +80,7 @@ else $dullen = $_REQUEST["dullen"]; $schweinchen = $_REQUEST["schweinchen"]; $call = $_REQUEST["callrule"]; + $lowtrump = $_REQUEST["lowtrump"]; /* get the emails addresses of the players */ $EmailA = DB_get_email('name',$PlayerA); @@ -142,7 +143,7 @@ else else /* no follow up, start a new session */ { /* get ruleset information or create new one */ - $ruleset = DB_get_ruleset($dullen,$schweinchen,$call); + $ruleset = DB_get_ruleset($dullen,$schweinchen,$call,$lowtrump); if($ruleset <0) { myerror("Error defining ruleset: $ruleset"); |