mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
fixed some rotation bugs
This commit is contained in:
parent
c54d4ec59d
commit
47c49c6d1d
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user