mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +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.createblock(5, ex - 8, usethisy + 8, 20, 16, 35);
|
||||
obj.createblock(ACTIVITY, ex - 8, usethisy + 8, 20, 16, 35);
|
||||
break;
|
||||
}
|
||||
case 19: //Script Box
|
||||
@@ -1800,7 +1800,7 @@ void mapclass::loadlevel(int rx, int ry)
|
||||
{
|
||||
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);
|
||||
tempscriptbox++;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user