Added check for abnormal game stop before updating game stats.

This commit is contained in:
Yizhe Shen 2014-02-13 18:59:36 -05:00
parent 32fa38a6c9
commit 04a4f00f80

View File

@ -838,6 +838,7 @@ def stop_game(cli, winner = ""):
var.update_role_stats(acc, rol, won, iwon)
size = len(var.list_players()) + len(var.DEAD)
if winner != "": # Only update if not an abnormal game stop
var.update_game_stats(size, winner)
reset(cli)