mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01: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:
parent
298aa95259
commit
f06ca9172a
1 changed files with 2 additions and 0 deletions
|
@ -2006,6 +2006,8 @@ void entityclass::createentity( float xp, float yp, int t, float vx /*= 0*/, flo
|
|||
break;
|
||||
}
|
||||
|
||||
entity.drawframe = entity.tile;
|
||||
|
||||
entities.push_back(entity);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue