fixed some rotation bugs

This commit is contained in:
Zeno Rogue 2018-08-20 02:03:43 +02:00
parent c54d4ec59d
commit 47c49c6d1d
2 changed files with 4 additions and 5 deletions

View File

@ -253,11 +253,11 @@ void bshape_regular(floorshape &fsh, int id, int sides, int shift, ld size) {
bshape(fsh.b[id], fsh.prio);
for(int t=0; t<=sides; t++)
hpcpush(xspinpush0(t*2 * M_PI / sides + shift, size));
hpcpush(xspinpush0(t*2 * M_PI / sides + shift * M_PI / S42, size));
bshape(fsh.shadow[id], fsh.prio);
for(int t=0; t<=sides; t++)
hpcpush(xspinpush0(t*2 * M_PI / sides + shift, size * SHADMUL));
hpcpush(xspinpush0(t*2 * M_PI / sides + shift * M_PI / S42, size * SHADMUL));
for(int k=0; k<SIDEPARS; k++) {
fsh.side[k].resize(2);

View File

@ -2390,9 +2390,8 @@ int countMinesAround(cell *c) {
transmatrix applyPatterndir(cell *c, const patterns::patterninfo& si) {
if(gp::on || irr::on || binarytiling) return Id;
transmatrix V = ddspin(c, si.dir, M_PI);
if(si.reflect) return V * Mirror;
if(archimedean) return V * iddspin(c, 0, M_PI);
return V;
if(si.reflect) V = V * Mirror;
return V * iddspin(c, 0, M_PI);
}
transmatrix applyDowndir(cell *c, cellfunction *cf) {