fix ghostable entities being pushed by ghosted entities

This commit is contained in:
2025-01-22 00:16:07 +09:00
parent fa2dbb5237
commit 916bc31356
4 changed files with 14 additions and 50 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export default class Game {
update() {
const callUpdate = function callUpdate(object) { object.update() }
this.entities.forEach(callUpdate)
this.entities.forEach(callUpdate) // TODO: entity with lower ID has unfair collision advantage (regular loop + until it fully loops around with an offset?)
this.projectiles.forEach(callUpdate)
if (this.#logic != null) {
this.#logic()