ref: b4ca687c02d8c17b3b89c3896f17add12038d564
parent: 66aef80d62aaf2a17bd4607c74d244c381a01cca
author: Simon Tatham <anakin@pobox.com>
date: Wed Feb 24 13:06:59 EST 2010
Typo affecting gameplay on grids wider than they are tall. (Clicking in columns with x > h was being erroneously rejected.) [originally from svn r8886]
--- a/blackbox.c
+++ b/blackbox.c
@@ -372,7 +372,7 @@
int ret, x1 = state->w+1, y1 = state->h+1;
if (x > 0 && x < x1 && y > 0 && y < y1) return 0; /* in arena */
- if (x < 0 || x > y1 || y < 0 || y > y1) return 0; /* outside grid */
+ if (x < 0 || x > x1 || y < 0 || y > y1) return 0; /* outside grid */
if ((x == 0 || x == x1) && (y == 0 || y == y1))
return 0; /* one of 4 corners */