1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed bugs with drawing hypersian rugs

This commit is contained in:
Zeno Rogue 2018-08-17 21:43:07 +02:00
parent 7fa3de574e
commit ad4eb89385

View File

@ -581,7 +581,8 @@ void set_floor(const transmatrix& spin, hpcshape& sh) {
}
void draw_shapevec(cell *c, const transmatrix& V, const vector<hpcshape> &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);
}