mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Only spawn activity zone if the script exists
This commit is contained in:
parent
02ace10df9
commit
c3b0a60aa4
1 changed files with 7 additions and 2 deletions
|
@ -1918,9 +1918,14 @@ void mapclass::loadlevel(int rx, int ry)
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.createentity(ex, usethisy + 8, 20 + SDL_clamp(ent.p2, 0, 1), usethistile);
|
obj.createentity(ex, usethisy + 8, 20 + SDL_clamp(ent.p2, 0, 1), usethistile);
|
||||||
if (obj.customscript != "")
|
|
||||||
|
for (size_t i = 0; i < script.customscripts.size(); i++)
|
||||||
|
{
|
||||||
|
if (script.customscripts[i].name == obj.customscript)
|
||||||
{
|
{
|
||||||
obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
|
obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue