1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-09 15:40:10 +00:00

product:: fixed too high creatures

This commit is contained in:
Zeno Rogue 2019-08-18 22:31:31 +02:00
parent 17f7cef678
commit bfc573dc55

View File

@ -635,6 +635,7 @@ namespace geom3 {
string invalid; string invalid;
ld actual_wall_height() { ld actual_wall_height() {
if(prod) return cgi.plevel;
#if CAP_GP #if CAP_GP
if(GOLDBERG && vid.gp_autoscale_heights) if(GOLDBERG && vid.gp_autoscale_heights)
return vid.wall_height * min<ld>(4 / hypot_d(2, gp::next), 1); return vid.wall_height * min<ld>(4 / hypot_d(2, gp::next), 1);
@ -706,6 +707,7 @@ namespace geom3 {
human_height = vid.human_wall_ratio * wh; human_height = vid.human_wall_ratio * wh;
if(WDIM == 3) human_height = scalefactor * vid.height_width / 2; if(WDIM == 3) human_height = scalefactor * vid.height_width / 2;
if(prod) human_height = min(human_height, cgi.plevel * .9);
ld reduce = (WDIM == 3 ? human_height / 2 : 0); ld reduce = (WDIM == 3 ? human_height / 2 : 0);