Skip to content

Commit

Permalink
Add createentity case 100 for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally authored and NyakoFox committed Nov 17, 2024
1 parent c69aed2 commit b9de83c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions desktop_version/src/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2173,6 +2173,9 @@ void entityclass::createentity(int xp, int yp, int t, int meta1, int meta2, int

entityclonefix(&entity);
break;
case 100: // Invalid enemy, but gets treated as a teleporter
entity.type = EntityType_TELEPORTER;
break;
}

entity.lerpoldxp = entity.xp;
Expand Down

0 comments on commit b9de83c

Please sign in to comment.