1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 08:11:21 +00:00

fixed the facing of player characters

This commit is contained in:
Zeno Rogue
2026-04-17 09:47:51 +02:00
parent 3ce6d373da
commit 08e5fb3f1e
3 changed files with 14 additions and 2 deletions

View File

@@ -370,7 +370,15 @@ EX bool drawMonsterType(eMonster m, cell *where, const shiftmatrix& V1, color_t
char xch = minf[m].glyph;
shiftmatrix V = V1;
if(WDIM == 3 && (classflag(m) & CF_FACE_UP) && where && !mhybrid) V = V1 * cspin90(0, 2);
if(WDIM == 3) {
bool faceup;
if(looks_like_player(m))
faceup = playershapes[getcs().charid >> 1].is_humanoid;
else
faceup = classflag(m) & CF_FACE_UP;
if(faceup)
V = V1 * cspin90(0, 2);
}
#if CAP_SHAPES
if(among(m, moTortoise, moWorldTurtle) && where && where->stuntime >= 3)