remove enemyTree (quad tree holding enemies) from game type as this is not static geometry and, since enemies are moving every frame, this should also be regenerated on every frame

This commit is contained in:
2025-01-11 22:06:08 +00:00
parent 8498eacde2
commit 49282887e3
3 changed files with 4 additions and 9 deletions

View File

@@ -422,7 +422,7 @@ struct
(* only checks for collisions with environment (walls and platforms) *)
fun getEnvironmentPatches (player, game) =
let
val {walls, wallTree, platformTree, platforms, enemyTree, enemies, ...} =
val {walls, wallTree, platformTree, platforms, enemies, ...} =
game
val {x, y, attacked, mainAttack, ...} = player