1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix regression with tile 10 not having nothing behind it

This broke when I was refactoring things earlier, because we no longer
have a direct reference to the contents array, instead using a copied
int. But we have a settile() function anyway, so why not use it?
This commit is contained in:
Misa 2021-10-06 17:00:50 -07:00
parent 038f15f4a6
commit 2f25ab77b1

View file

@ -2057,7 +2057,7 @@ void mapclass::loadlevel(int rx, int ry)
//Breakable blocks
if (tile == 10)
{
tile = 0;
settile(i, j, 0);
obj.createentity(i * 8, j * 8, 4);
}
//Directional blocks