Entity type 2: Remove sprite_identifier (#14334)

* Start changing the underlying type

* Further work

* Complete refactor

* Further cleanup

* Remove pointless check

* Increment network and plugin versions

* Add defaults

* Further defaults

* Fix test paint

* Update replays
This commit is contained in:
Duncan authored and GitHub committed 2021-03-17 08:04:41 +00:00
1 parent 6ec379cd0e
commit df7a284822
30 files changed
+435 -501

No files matched your search

@@ -1585,7 +1585,7 @@ static int32_t cc_mp_desync(InteractiveConsole& console, const arguments_t& argv
for (int i = 0; i < MAX_ENTITIES; i++)
{
auto* sprite = GetEntity(i);
if (sprite == nullptr || sprite->sprite_identifier == SpriteIdentifier::Null)
if (sprite == nullptr || sprite->Type == EntityType::Null)
continue;
auto peep = sprite->As<Peep>();