diff --git a/compile b/compile
index 862a91f..c1295b1 100755
--- a/compile
+++ b/compile
@@ -9,7 +9,7 @@ inliner -n play.html > play_inlined.txt
echo copying files
cp gzipper bin/
cp -r *.* bin/
-cp .htaccess ../bin/
+cp .htaccess bin/
echo compressing html
java -jar ~/progs/htmlcompressor-1.5.3.jar -r bin/ -o bin/
echo gzipping site
diff --git a/pinball.js b/pinball.js
index a54f6fb..c4bf2ce 100644
--- a/pinball.js
+++ b/pinball.js
@@ -636,8 +636,8 @@ function press(evt){
evt = evt || window.event;
keyBuffer[evt.keyCode]=true;
- if ([32, 37, 38, 39, 40].indexOf(event.keyCode) > -1) {
- prevent(event);
+ if ([32, 37, 38, 39, 40].indexOf(evt.keyCode) > -1) {
+ prevent(evt);
}
/*
@@ -1167,6 +1167,8 @@ function ballCollides(){
var bpyr=Math.round(bpy);
if (exitTriggered ===false && bpxr<=exitPointX&&exitPointX<=bpxr+4 && bpyr<=exitPointY&&exitPointY<=bpyr+4 ){
exitTriggered=true;
+ tilting=false;
+ keyBuffer[38]=false;
wonindex=13;
bpx=-1000;
bpy=-1000;
diff --git a/play_inlined.txt b/play_inlined.txt
index 58b379a..1dc8ebb 100644
--- a/play_inlined.txt
+++ b/play_inlined.txt
@@ -151,7 +151,7 @@ hr{
-