From e82ed755b23bc5c5a49ab633f42ce623ade616d6 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Wed, 30 Nov 2016 10:12:45 -0500 Subject: [PATCH] [DLN] fix non-insurance case to avoid random reveals --- libraries/chain/game_object.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libraries/chain/game_object.cpp b/libraries/chain/game_object.cpp index ea2ac76a..d7214925 100644 --- a/libraries/chain/game_object.cpp +++ b/libraries/chain/game_object.cpp @@ -451,17 +451,7 @@ namespace graphene { namespace chain { const match_object& match_obj = match_id(db); const tournament_object& tournament_obj = match_obj.tournament_id(db); const rock_paper_scissors_game_options& game_options = tournament_obj.options.game_options.get(); - if (!game_options.insurance_enabled) // no automatic moves - { - struct rock_paper_scissors_throw_reveal reveal; - reveal.nonce2 = 0; - reveal.gesture = (rock_paper_scissors_gesture)db.get_random_bits(game_options.number_of_gestures); - rps_game_details.reveal_moves[0] = - rps_game_details.reveal_moves[1] = reveal; - ilog("Both players failed to commit a move, generating a random move for them: ${gesture}", - ("gesture", reveal.gesture)); - } - else + if (game_options.insurance_enabled) { for (unsigned i = 0; i < 2; ++i) {