teg (0.11.2+debian-3) avoid_two_identical_country.diff

Summary

 server/play.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

Index: teg-0.11.2/server/play.c
===================================================================
--- teg-0.11.2.orig/server/play.c	2007-07-12 07:14:47.000000000 +0000
+++ teg-0.11.2/server/play.c	2007-07-12 07:16:21.000000000 +0000
@@ -1009,10 +1009,11 @@
 
 	canj_ejer = cuantos_x_canje( pJ->tot_exchanges );
 
-	/* quitarle las tarjetas al player */
+	/* quitarle las tarjetas al player | mark the cards as unused*/
 	tarjeta_poner( &g_countries[t1].tarjeta );
 	tarjeta_poner( &g_countries[t2].tarjeta );
-	tarjeta_poner( &g_countries[t2].tarjeta );
+	tarjeta_poner( &g_countries[t3].tarjeta );
+
 
 	netall_printf("%s=%d,%d,%d,%d,%d\n", TOKEN_CANJE,
 			pJ->numjug,canj_ejer,t1,t2,t3);