From 85914fb3b4085d91215bab80075a9e10a36a0730 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Tue, 22 Nov 2016 18:30:34 -0500 Subject: [PATCH] Remove code that was resetting the game timer each time a player made a move --- libraries/chain/game_object.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/chain/game_object.cpp b/libraries/chain/game_object.cpp index d43296ba..30a646ad 100644 --- a/libraries/chain/game_object.cpp +++ b/libraries/chain/game_object.cpp @@ -106,7 +106,6 @@ namespace graphene { namespace chain { fc_ilog(fc::logger::get("tournament"), "game ${id} received a commit move, still expecting another commit move", ("id", game.id)); - set_next_timeout(event.db, game); } }; struct expecting_reveal_moves : public msm::front::state<> @@ -131,14 +130,16 @@ namespace graphene { namespace chain { game_object& game = *fsm.game_obj; if (event.move.move.which() == game_specific_moves::tag::value) + { fc_ilog(fc::logger::get("tournament"), "game ${id} received a commit move, now expecting reveal moves", ("id", game.id)); + set_next_timeout(event.db, game); + } else fc_ilog(fc::logger::get("tournament"), "game ${id} received a reveal move, still expecting reveal moves", ("id", game.id)); - set_next_timeout(event.db, game); } };