Added check for abnormal game stop before updating game stats.
This commit is contained in:
parent
32fa38a6c9
commit
04a4f00f80
@ -838,7 +838,8 @@ def stop_game(cli, winner = ""):
|
|||||||
var.update_role_stats(acc, rol, won, iwon)
|
var.update_role_stats(acc, rol, won, iwon)
|
||||||
|
|
||||||
size = len(var.list_players()) + len(var.DEAD)
|
size = len(var.list_players()) + len(var.DEAD)
|
||||||
var.update_game_stats(size, winner)
|
if winner != "": # Only update if not an abnormal game stop
|
||||||
|
var.update_game_stats(size, winner)
|
||||||
|
|
||||||
reset(cli)
|
reset(cli)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user