digons arising in the Warped Coast are now shown as narrow tiles

This commit is contained in:
Zeno Rogue 2018-08-21 02:47:53 +02:00
parent 0fd9cc46f2
commit 598cbc5f2f
1 changed files with 6 additions and 1 deletions

View File

@ -371,8 +371,13 @@ void generate_floorshapes_for(int id, cell *c, int siid, int sidir) {
}
sizeto(fsh.b, id);
bshape(fsh.b[id], fsh.prio);
for(int i=0; i<=cor; i++) hpcpush(cornerlist[i%cor]);
if(&fsh == &shTriheptaFloor && cor == 4 && siid)
/* draw digons specially */
for(int i=0; i<=cor; i++) hpcpush(spin((i&1) ? .1 : -.1) * cornerlist[i%cor]);
else
for(int i=0; i<=cor; i++) hpcpush(cornerlist[i%cor]);
sizeto(fsh.shadow, id);
bshape(fsh.shadow[id], fsh.prio);