fix compile errors after previous commit (which involved reimplementing the quad tree to eliminate the possibility of a class of bugs I was experiencing; the problem was that the quad bounds were being passed recursively in different functions, but the long argument list in these functions made it difficult to see where the mismatch was)
This commit is contained in:
@@ -47,8 +47,8 @@ struct
|
||||
(case attacked of
|
||||
NOT_ATTACKED =>
|
||||
let
|
||||
val enemyCollisions = QuadHelp.getCollisions
|
||||
(x, y, size, size, enemyTree)
|
||||
val enemyCollisions = QuadTree.getCollisions
|
||||
(x, y, size, size, ~1, enemyTree)
|
||||
|
||||
val player =
|
||||
Player.enemyCollisionReaction
|
||||
@@ -72,8 +72,8 @@ struct
|
||||
if amt = Constants.attackedLimit then
|
||||
(* if reached limit, detect enemies again *)
|
||||
let
|
||||
val enemyCollisions = QuadHelp.getCollisions
|
||||
(x, y, size, size, enemyTree)
|
||||
val enemyCollisions = QuadTree.getCollisions
|
||||
(x, y, size, size, ~1, enemyTree)
|
||||
|
||||
val player =
|
||||
Player.exitAttackedAndCheckEnemies
|
||||
|
||||
Reference in New Issue
Block a user