mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 07:23:53 +03: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user