1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 09:00:34 +00:00

fixed the vertical placement of Jiangshi

This commit is contained in:
Zeno Rogue 2019-06-24 12:59:28 +02:00
parent 084a7d0469
commit 66560a6e9f

View File

@ -1842,7 +1842,7 @@ bool drawMonsterType(eMonster m, cell *where, const transmatrix& V1, color_t col
case moJiangshi: {
ShadowV(V, cgi.shJiangShi);
auto z2 = geom3::lev_to_factor(abs(sin(footphase * M_PI * 2)) * cgi.human_height);
auto z2 = WDIM == 3 ? 0 : GDIM == 3 ? -abs(sin(footphase * M_PI * 2)) * cgi.human_height/3 : geom3::lev_to_factor(abs(sin(footphase * M_PI * 2)) * cgi.human_height);
auto V0 = V;
auto V = mmscale(V0, z2);
otherbodyparts(V, darkena(col, 0, 0xFF), m, m == moJiangshi ? 0 : footphase);