1
0
Fork 0
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:
Misa 2020-04-28 16:37:55 -07:00 committed by Ethan Lee
parent 298aa95259
commit f06ca9172a

View file

@ -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);
} }