1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-09 18:39:45 +01:00

Use enum names instead of raw values in createblock() calls

It makes it clearer if the enum names are used instead of their values.
This commit is contained in:
Misa 2020-07-09 03:10:08 -07:00 committed by Ethan Lee
parent a2f20e7e49
commit c7ea684c08

View file

@ -1792,7 +1792,7 @@ void mapclass::loadlevel(int rx, int ry)
} }
obj.createentity(ex, usethisy + 8, 20, usethistile); obj.createentity(ex, usethisy + 8, 20, usethistile);
obj.createblock(5, ex - 8, usethisy + 8, 20, 16, 35); obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
break; break;
} }
case 19: //Script Box case 19: //Script Box
@ -1800,7 +1800,7 @@ void mapclass::loadlevel(int rx, int ry)
{ {
game.customscript[tempscriptbox]=ent.scriptname; game.customscript[tempscriptbox]=ent.scriptname;
} }
obj.createblock(1, ex, ey, obj.createblock(TRIGGER, ex, ey,
ent.p1*8, ent.p2*8, 300+tempscriptbox, "custom_" + ent.scriptname); ent.p1*8, ent.p2*8, 300+tempscriptbox, "custom_" + ent.scriptname);
tempscriptbox++; tempscriptbox++;
break; break;