mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Set drawframe to tile when creating an entity
This fixes entities being drawframe 0 for 1 frame when being first created. Incidentally, this also fixes entities created during completestop being the player sprite, too, which is something not many people notice.
This commit is contained in:
@@ -2006,6 +2006,8 @@ void entityclass::createentity( float xp, float yp, int t, float vx /*= 0*/, flo
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entity.drawframe = entity.tile;
|
||||||
|
|
||||||
entities.push_back(entity);
|
entities.push_back(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user