mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01: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:
parent
53d725f78a
commit
64c554261e
1 changed files with 6 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue