Fix gravity/warp lines being modified during draw

While warp lines were being drawn, they also got resized to
automatically fit between collision. In renderfixed, gravity lines are
resized the same way. Doing logic while drawing is very poor practice,
so resizing of these has been moved into logic, and merged together.

Aside from some more cleanup, this commit also removes the very poorly
done right click emulation, when you hold CTRL and click. It never
worked well in the past, and even requires a right click to use, so
there's not really any point to keeping it around.
This commit is contained in:
AllyTally
2023-03-02 16:28:02 -04:00
committed by Misa Elizabeth Kai
parent 84c6d44c52
commit 7b5ef40926
2 changed files with 128 additions and 153 deletions

View File

@@ -185,9 +185,9 @@ static const inline struct ImplFunc* get_gamestate_funcs(
FUNC_LIST_BEGIN(EDITORMODE)
{Func_fixed, flipmodeoff},
{Func_input, editorinput},
{Func_fixed, editorlogic},
{Func_fixed, editorrenderfixed},
{Func_delta, editorrender},
{Func_fixed, editorlogic},
FUNC_LIST_END
#endif