1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-30 20:41:24 +00:00

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

@@ -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) {