Remove code that was resetting the game timer each time a player made a move
This commit is contained in:
parent
a00b6cc8a1
commit
85914fb3b4
1 changed files with 3 additions and 2 deletions
|
|
@ -106,7 +106,6 @@ namespace graphene { namespace chain {
|
||||||
fc_ilog(fc::logger::get("tournament"),
|
fc_ilog(fc::logger::get("tournament"),
|
||||||
"game ${id} received a commit move, still expecting another commit move",
|
"game ${id} received a commit move, still expecting another commit move",
|
||||||
("id", game.id));
|
("id", game.id));
|
||||||
set_next_timeout(event.db, game);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
struct expecting_reveal_moves : public msm::front::state<>
|
struct expecting_reveal_moves : public msm::front::state<>
|
||||||
|
|
@ -131,14 +130,16 @@ namespace graphene { namespace chain {
|
||||||
game_object& game = *fsm.game_obj;
|
game_object& game = *fsm.game_obj;
|
||||||
|
|
||||||
if (event.move.move.which() == game_specific_moves::tag<rock_paper_scissors_throw_commit>::value)
|
if (event.move.move.which() == game_specific_moves::tag<rock_paper_scissors_throw_commit>::value)
|
||||||
|
{
|
||||||
fc_ilog(fc::logger::get("tournament"),
|
fc_ilog(fc::logger::get("tournament"),
|
||||||
"game ${id} received a commit move, now expecting reveal moves",
|
"game ${id} received a commit move, now expecting reveal moves",
|
||||||
("id", game.id));
|
("id", game.id));
|
||||||
|
set_next_timeout(event.db, game);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fc_ilog(fc::logger::get("tournament"),
|
fc_ilog(fc::logger::get("tournament"),
|
||||||
"game ${id} received a reveal move, still expecting reveal moves",
|
"game ${id} received a reveal move, still expecting reveal moves",
|
||||||
("id", game.id));
|
("id", game.id));
|
||||||
set_next_timeout(event.db, game);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue