1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +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

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