mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Only spawn activity zone if the script exists
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
02ace10df9
commit
c3b0a60aa4
@@ -1918,9 +1918,14 @@ void mapclass::loadlevel(int rx, int ry)
|
||||
}
|
||||
|
||||
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++)
|
||||
{
|
||||
obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
|
||||
if (script.customscripts[i].name == obj.customscript)
|
||||
{
|
||||
obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user