From 5b748e9531cb753b68ee391c6897c7926a1aa2d4 Mon Sep 17 00:00:00 2001 From: Leo VIALLON-GALINIER Date: Mon, 27 Apr 2020 11:26:17 +0200 Subject: [PATCH] Correct bug in javascript diplay --- static/game_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/game_script.js b/static/game_script.js index adc9083..1ada05a 100644 --- a/static/game_script.js +++ b/static/game_script.js @@ -45,7 +45,7 @@ var set_atout = function(){ if (jeu['turn']<-4 && (jeu['turn']+jeu['first_player']+8)%4 == jeu['nr']){ $('#preneur').html(``); $('#prispar').html(``); - }else if((jeu['turn']+jeu['first_player']+8)%4 == jeu['nr']){ + }else if((jeu['turn']+jeu['first_player']+8)%4 == jeu['nr'] && jeu['turn']<0){ $('#preneur').html(`
@@ -159,7 +159,7 @@ var set_current_player = function(){ } else { - $('#suivant').show(); + $('#suivant').hide(); } }