Fix 1 frame where sad crewmates' drawframes weren't updated

When I loaded the room where Vitellary is in Space Station 2, I saw this
1-frame glitch happen despite my previous efforts to prevent it. So now
it's fixed.
This commit is contained in:
Misa
2020-05-02 16:48:43 -07:00
committed by Ethan Lee
parent 2333087c27
commit d88b603019

View File

@@ -1942,6 +1942,10 @@ void mapclass::loadlevel(int rx, int ry)
{
if (obj.entities[i].rule == 6 || obj.entities[i].rule == 7)
{
if (obj.entities[i].tile == 144 || obj.entities[i].tile == 144+6)
{
obj.entities[i].drawframe = 144;
}
if (obj.entities[i].state == 18)
{
//face the player