mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
guard against double-finishshape
This commit is contained in:
parent
22837f9311
commit
9221a532f9
@ -1088,8 +1088,8 @@ void make_3d_models() {
|
|||||||
}
|
}
|
||||||
last->flags |= POLY_TRIANGLES;
|
last->flags |= POLY_TRIANGLES;
|
||||||
add_texture(*last);
|
add_texture(*last);
|
||||||
finishshape();
|
|
||||||
if(WDIM == 2) shift_last_straight(geom3::FLOOR);
|
if(WDIM == 2) shift_last_straight(geom3::FLOOR);
|
||||||
|
finishshape();
|
||||||
shJelly = shSlime;
|
shJelly = shSlime;
|
||||||
|
|
||||||
shift_shape(shMagicSword, geom3::ABODY);
|
shift_shape(shMagicSword, geom3::ABODY);
|
||||||
|
@ -1882,6 +1882,7 @@ void finishshape() {
|
|||||||
if(allminus || allplus) last->flags |= POLY_VCONVEX;
|
if(allminus || allplus) last->flags |= POLY_VCONVEX;
|
||||||
|
|
||||||
allshapes.push_back(last);
|
allshapes.push_back(last);
|
||||||
|
last = NULL;
|
||||||
|
|
||||||
/* if(isnan(area)) ;
|
/* if(isnan(area)) ;
|
||||||
else if(intval(hpc[last->s], hpc[last->e-1]) > 1e-6)
|
else if(intval(hpc[last->s], hpc[last->e-1]) > 1e-6)
|
||||||
|
Loading…
Reference in New Issue
Block a user