From 045ce3a0fc7bec7ce3892f669f9dca38c0f21fc0 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Thu, 9 Mar 2023 16:11:11 -0400 Subject: [PATCH] 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. --- desktop_version/src/Editor.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/desktop_version/src/Editor.cpp b/desktop_version/src/Editor.cpp index 6591bd70..b19bed48 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -2988,16 +2988,13 @@ void editorinput(void) { 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].p2 = ed.tiley + (ed.levy * 30); + customentities[ed.warp_token_entity].p1 = ed.tilex + (ed.levx * 40); + customentities[ed.warp_token_entity].p2 = ed.tiley + (ed.levy * 30); - ed.substate = EditorSubState_MAIN; + ed.substate = EditorSubState_MAIN; - ed.warp_token_entity = -1; - ed.lclickdelay = 1; - } + ed.warp_token_entity = -1; + ed.lclickdelay = 1; } } else