summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-09-18 19:47:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-09-18 19:47:10 (GMT)
commitcf9b36d3db42d3f39b0195c885119579c019edd5 (patch)
tree6a5f538f80ad2358580f7f3c721d4940d4e75e45 /src
parent16ae9a9b595ae7528344ea46f462f8105a34a79e (diff)
downloadpowder-cf9b36d3db42d3f39b0195c885119579c019edd5.zip
powder-cf9b36d3db42d3f39b0195c885119579c019edd5.tar.gz
Fix bug where mouse events are confused after breaking out of a mouse down event
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c9761dd..b49842a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2526,7 +2526,7 @@ int main(int argc, char *argv[])
}
}
- bq = b; // bq is previous mouse state
+ bq = bc; // bq is previous mouse state
bc = b = SDL_GetMouseState(&x, &y); // b is current mouse state
#ifdef LUACONSOLE