From 5faa86baaea98aaeeb5e9dfcab3082d9cf290664 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 6 Nov 2020 11:58:18 -0800 Subject: [PATCH] Add x-room = 13 check to entity 1 `behave` 13 This check is clearly meant for destroying the factory clouds in the room "Level Complete!" in the main game, but it covers all rooms on row 8, instead of only (13,8). Adding an x-room check restricts this behavior to only (13,8). Trinket9 reported that this weird behavior of destroying specifically above y-position 60 was undesirable, since they were creating an enemy with this `behave` in a room on row 8 and it kept disappearing instantly. --- desktop_version/src/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index a0404ec9..c6874829 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2361,7 +2361,7 @@ bool entityclass::updateentities( int i ) { return removeentity(i); } - if (game.roomy == 108) + if (game.roomx == 113 && game.roomy == 108) { if (entities[i].yp <= 60) {