in case a player called solo, the gametype was set so that for other playes Schweinchen
wasn't calculated correctly anymore. This could result in trump being counted incorrectly
and therefore poverties not being discoverd.
Signed-off-by: Arun Persaud <arun@nubati.net>
* save information in $GAME
*/
$ok=0;
-if( $gametype == 'normal' || $gametype == 'silent' || $gametype=='trump' )
- if( in_array($RULES['schweinchen'],array('both','second','secondaftercall')) )
- $ok=1;
+if( $gamestatus == 'pre' )
+ {
+ /* always need to use Schweinchen to figure out for example who has poverty */
+ $ok=1;
+ }
+else
+ {
+ /* in a game Schweinchen is not valid in all types of games */
+ if( $gametype == 'normal' || $gametype == 'silent' || $gametype=='trump' )
+ if( in_array($RULES['schweinchen'],array('both','second','secondaftercall')) )
+ $ok=1;
+ }
if($ok)
{