mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
arb:: fixed shape id info in unmirror
This commit is contained in:
parent
c70dc65846
commit
21942ff7b9
@ -266,6 +266,8 @@ EX void unmirror() {
|
|||||||
int s = isize(sh);
|
int s = isize(sh);
|
||||||
for(int i=0; i<s; i++)
|
for(int i=0; i<s; i++)
|
||||||
sh.push_back(sh[i]);
|
sh.push_back(sh[i]);
|
||||||
|
for(int i=0; i<2*s; i++)
|
||||||
|
sh[i].id = i;
|
||||||
for(int i=s; i<s+s; i++) {
|
for(int i=s; i<s+s; i++) {
|
||||||
for(auto& v: sh[i].vertices)
|
for(auto& v: sh[i].vertices)
|
||||||
v[1] = -v[1];
|
v[1] = -v[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user