From 89f0a6ba8a5daa130d0cec8377b68292b500f73d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 28 Aug 2018 14:09:36 +0200 Subject: [PATCH] some more bugfixes --- graph.cpp | 2 +- mapeditor.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/graph.cpp b/graph.cpp index 4c0d7a9b..1421d9c5 100644 --- a/graph.cpp +++ b/graph.cpp @@ -566,7 +566,7 @@ bool drawstar(cell *c) { } bool drawing_usershape_on(cell *c, mapeditor::eShapegroup sg) { - return c && c == mapeditor::drawcell && mapeditor::drawcellShapeGroup() == mapeditor::sgItem; + return c && c == mapeditor::drawcell && mapeditor::drawcellShapeGroup() == sg; } bool drawItemType(eItem it, cell *c, const transmatrix& V, int icol, int ticks, bool hidden) { diff --git a/mapeditor.cpp b/mapeditor.cpp index 1e16154c..586f07ee 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -1706,7 +1706,8 @@ namespace mapeditor { return false; #else - if(c && c == drawcell && editingShape(group, id) && prio == PPR_DEFAULT) + // floors handled separately + if(c && c == drawcell && editingShape(group, id) && group != sgFloor) drawtrans = V; usershape *us = usershapes[group][id];