From ad4eb893858358a4c463a05d8fdadfb0af9bef91 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 17 Aug 2018 21:43:07 +0200 Subject: [PATCH] fixed bugs with drawing hypersian rugs --- floorshapes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/floorshapes.cpp b/floorshapes.cpp index 7a82ad29..652cb55b 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -581,7 +581,8 @@ void set_floor(const transmatrix& spin, hpcshape& sh) { } void draw_shapevec(cell *c, const transmatrix& V, const vector &shv, int col, int prio = -1) { - if(gp::on) { + if(!c) queuepolyat(V, shv[0], col, prio); + else if(gp::on) { int id = gp::get_plainshape_id(c); queuepolyat(V, shv[id], col, prio); }