mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +01:00
Allow placing warp token destination in walls
Staying consistent with how entities can now be placed in walls, the warp token destination should follow this as well.
This commit is contained in:
parent
08084e5a97
commit
045ce3a0fc
1 changed files with 5 additions and 8 deletions
|
@ -2987,8 +2987,6 @@ void editorinput(void)
|
||||||
if (key.leftbutton)
|
if (key.leftbutton)
|
||||||
{
|
{
|
||||||
if (ed.lclickdelay == 0)
|
if (ed.lclickdelay == 0)
|
||||||
{
|
|
||||||
if (ed.free(ed.tilex, ed.tiley) == 0)
|
|
||||||
{
|
{
|
||||||
customentities[ed.warp_token_entity].p1 = ed.tilex + (ed.levx * 40);
|
customentities[ed.warp_token_entity].p1 = ed.tilex + (ed.levx * 40);
|
||||||
customentities[ed.warp_token_entity].p2 = ed.tiley + (ed.levy * 30);
|
customentities[ed.warp_token_entity].p2 = ed.tiley + (ed.levy * 30);
|
||||||
|
@ -2999,7 +2997,6 @@ void editorinput(void)
|
||||||
ed.lclickdelay = 1;
|
ed.lclickdelay = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ed.lclickdelay = 0;
|
ed.lclickdelay = 0;
|
||||||
|
|
Loading…
Reference in a new issue