Stop shooting upon crawler death

This commit is contained in:
Anuken
2021-01-29 12:02:31 -05:00
parent d512aa5b21
commit 9142da2b70
3 changed files with 13 additions and 9 deletions

View File

@@ -190,14 +190,10 @@ public class EntityCollisions{
yInvExit = y2 - (y1 + h1);
}
float xEntry, yEntry;
float xExit, yExit;
xEntry = xInvEntry / vx1;
xExit = xInvExit / vx1;
yEntry = yInvEntry / vy1;
yExit = yInvExit / vy1;
float xEntry = xInvEntry / vx1;
float xExit = xInvExit / vx1;
float yEntry = yInvEntry / vy1;
float yExit = yInvExit / vy1;
float entryTime = Math.max(xEntry, yEntry);
float exitTime = Math.min(xExit, yExit);