From be1201b6aabc5365cadfff24049fe311d8458c9b Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Wed, 13 May 2020 22:48:06 -0500 Subject: Fix vent bug, add constant spaced vent air streams --- src/paperflight/static/update.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/paperflight/static/update.js') diff --git a/src/paperflight/static/update.js b/src/paperflight/static/update.js index ac5c284..b953914 100644 --- a/src/paperflight/static/update.js +++ b/src/paperflight/static/update.js @@ -30,7 +30,12 @@ function update() { } } function updateVent() { - if (isPlaneInBox(this)) { + // Custom box since vent height is upwards + if (isPlaneInBox({ + x: this.x, + y: this.y-this.height, + width: this.width, + height: this.height})) { plane.y -= 2 } } -- cgit v1.2.3