Permalink
Browse files

Allow lying in wait for people

  • Loading branch information...
wjt committed Feb 18, 2012
1 parent 207df52 commit b431ecb98ebeab26f42ee478f06ee18c6724a060
Showing with 4 additions and 0 deletions.
  1. +4 −0 longwitton/views.py
View
@@ -90,8 +90,12 @@ def chasee_update(request, new_url):
g = get_game()
g.chasee_current_page = new_url
+ # If the chaser is waiting at the goal, let the chasee win anyway. That's
+ # just not cricket.
if g.goal == new_url:
g.status = 'chasee'
+ elif new_url == g.chaser_current_page:
+ g.status = 'chaser'
g.save()
r = make_plain_response()

0 comments on commit b431ecb

Please sign in to comment.