From d7dac6b9be0d931da1291f335c76a46ebbc97369 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Wed, 17 Jun 2020 17:40:58 -0300 Subject: [PATCH] Allow using Warp Zone gray tileset in editor Originally written by Info Teddy --- desktop_version/src/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 248fea3c..2af9d61a 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -4343,6 +4343,10 @@ void editorinput() { if(ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol>=8) ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol=0; } + else if(ed.level[ed.levx+(ed.levy*ed.maxwidth)].tileset==3) + { + if(ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol>=7) ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol=0; + } else { if(ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol>=6) ed.level[ed.levx+(ed.levy*ed.maxwidth)].tilecol=0;