some more bugfixes

This commit is contained in:
Zeno Rogue 2018-08-28 14:09:36 +02:00
parent f009e80689
commit 89f0a6ba8a
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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];