mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
added finishshape before clone_shape as it could damage the previous shape
This commit is contained in:
parent
bf001926c2
commit
429ed81293
@ -596,6 +596,7 @@ void geometry_information::make_revolution_cut(hpcshape &sh, int each, ld push,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void geometry_information::clone_shape(hpcshape& sh, hpcshape& target) {
|
void geometry_information::clone_shape(hpcshape& sh, hpcshape& target) {
|
||||||
|
finishshape();
|
||||||
target = sh;
|
target = sh;
|
||||||
target.s = isize(hpc);
|
target.s = isize(hpc);
|
||||||
for(int i=sh.s; i<sh.e; i++) hpc.push_back(hpc[i]);
|
for(int i=sh.s; i<sh.e; i++) hpc.push_back(hpc[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user