mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09: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:
parent
a2f20e7e49
commit
c7ea684c08
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue