Skip to content

Commit

Permalink
Fixing bug where player can click enemy territories on second fortify
Browse files Browse the repository at this point in the history
  • Loading branch information
frgorp committed Apr 2, 2013
1 parent 9ff1f0f commit fc65ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion risk/graphics/input.py
Expand Up @@ -308,11 +308,11 @@ def attack_failed(player, game_master, origin, target):


def fortify_phase(player, game_master): def fortify_phase(player, game_master):
picasso = get_picasso() picasso = get_picasso()
disable_enemy_territories(player)
hint_asset = build_hint_asset(FORTIFY_HINTS['initial']) hint_asset = build_hint_asset(FORTIFY_HINTS['initial'])
done = False done = False
# TODO merge with attack phase block # TODO merge with attack phase block
while not done: while not done:
disable_enemy_territories(player)
picasso.add_asset(LAYER, hint_asset) picasso.add_asset(LAYER, hint_asset)
event = wait_for_mouse_click() event = wait_for_mouse_click()
for name, clickable in get_clicked_territories(event.pos): for name, clickable in get_clicked_territories(event.pos):
Expand Down

0 comments on commit fc65ca0

Please sign in to comment.