Skip to content

Commit

Permalink
fixed a raycasting glitch
Browse files Browse the repository at this point in the history
thanks, @DarDoro for yet another brilliant catch!
  • Loading branch information
jmoenig committed Jan 15, 2024
1 parent aa6e1d9 commit d532686
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

2024-01-15
* new dev version for v9.2.1
* threads: fixed a raycasting glitch, thanks, Dariusz, for yet another brilliant catch!

## 9.2.0:
* **New Features:**
Expand Down
2 changes: 1 addition & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="src/symbols.js?version=2023-07-13"></script>
<script src="src/widgets.js?version=2023-05-24"></script>
<script src="src/blocks.js?version=2023-11-24"></script>
<script src="src/threads.js?version=2024-01-10"></script>
<script src="src/threads.js?version=2024-01-15"></script>
<script src="src/objects.js?version=2024-01-10"></script>
<script src="src/scenes.js?version=2022-10-29"></script>
<script src="src/gui.js?version=2024-01-15"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition, CommentMorph*/

/*jshint esversion: 11, bitwise: false, evil: true*/

modules.threads = '2024-January-10';
modules.threads = '2024-January-15';

var ThreadManager;
var Process;
Expand Down Expand Up @@ -6118,7 +6118,7 @@ Process.prototype.reportRayLengthTo = function (name, relativeAngle = 0) {
top = targetBounds.top();
bottom = targetBounds.bottom();
left = targetBounds.left();
right = targetBounds.right();
right = targetBounds.right() - 1;

// test if already inside the target
if (targetBounds.containsPoint(rc)) {
Expand Down

0 comments on commit d532686

Please sign in to comment.