1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

camera level higher when riding dragon

This commit is contained in:
Zeno Rogue 2019-06-24 13:34:29 +02:00
parent 66560a6e9f
commit 2c16564663

View File

@ -1161,6 +1161,7 @@ void centerpc(ld aspd) {
if(GDIM == 3 && WDIM == 2) { if(GDIM == 3 && WDIM == 2) {
geom3::do_auto_eye(); geom3::do_auto_eye();
int sl = snakelevel(cwt.at); int sl = snakelevel(cwt.at);
if(isWorm(cwt.at->monst) && sl < 3) sl++;
if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye); if(sl || vid.eye) T = T * zpush(cgi.SLEV[sl] - cgi.FLOOR + vid.eye);
} }
#endif #endif