Remove eraser when there's nothing to erase

This commit is contained in:
Nikita Lisitsa 2024-08-20 17:42:12 +03:00
parent eb7d92d1e0
commit d384fe6acc

View file

@ -2245,6 +2245,7 @@ namespace gmtk
geom::point<float, 2> pen = view_box_.corner(1, 1) - geom::vector{step, step} / 2.f;
if (map_.cards.size() > 1)
for (auto type : card_type_values())
{
if (!map_.cards.contains(type))