mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Fix regression: Entities not moving
Commit 53d725f78a, intended to fix an
overzealous commit, was itself overzealous. This is because it applied
to all entities when it should only apply to entity-emitting entities.
To fix this, `entityclonefix` needs to no-op if the entity is not an
entity emitter.
Fixes #1176.
This commit is contained in:
@@ -1235,6 +1235,12 @@ static void entityclonefix(entclass* entity)
|
||||
const bool is_lies_emitter = entity->behave == 10;
|
||||
const bool is_factory_emitter = entity->behave == 12;
|
||||
|
||||
const bool is_emitter = is_lies_emitter || is_factory_emitter;
|
||||
if (!is_emitter)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const bool in_lies_emitter_room =
|
||||
game.roomx >= 113 && game.roomx <= 117 && game.roomy == 111;
|
||||
const bool in_factory_emitter_room =
|
||||
|
||||
Reference in New Issue
Block a user