mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix 1-frame glitch when entering a room with plats in finalmode
Looks like mapclass::changefinalcol() is called whenever you enter a room in Outside Dimension VVVVVV. mapclass::changefinalcol() changes the tile, but it doesn't update their drawframe. So after that function is called, update their drawframe. If you update their drawframe while inside that function, then when the platform actually cycles color it'll cycle backwards quickly sometimes, which is not ideal.
This commit is contained in:
parent
d88b603019
commit
995f0f126f
1 changed files with 8 additions and 0 deletions
|
@ -1383,6 +1383,14 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
|
||||
graphics.rcol = 6;
|
||||
changefinalcol(final_mapcol);
|
||||
for (size_t i = 0; i < obj.entities.size(); i++)
|
||||
{
|
||||
if (obj.entities[i].type == 1 || obj.entities[i].type == 2)
|
||||
{
|
||||
//Fix 1-frame glitch
|
||||
obj.entities[i].drawframe = obj.entities[i].tile;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 7: //Final Level, Tower 1
|
||||
tdrawback = true;
|
||||
|
|
Loading…
Reference in a new issue