mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-06 22:20:10 +00:00
correctly display/rotate the PC in product
This commit is contained in:
parent
90926c3bc6
commit
dafb4ae582
10
shmup.cpp
10
shmup.cpp
@ -2938,7 +2938,15 @@ bool celldrawer::draw_shmup_monster() {
|
||||
|
||||
if(!ths || !h) {
|
||||
drawPlayerEffects(view, c, true);
|
||||
if(WDIM == 3) view = view * spin(-M_PI/2) * cspin(0, 2, -M_PI/2);
|
||||
if(WDIM == 3) {
|
||||
if(prod) {
|
||||
hyperpoint h = m->ori * C0;
|
||||
view = view * spin(-atan2(h[1], h[0]));
|
||||
}
|
||||
else {
|
||||
view = view * spin(-M_PI/2) * cspin(0, 2, -M_PI/2);
|
||||
}
|
||||
}
|
||||
if(m->inBoat) m->footphase = 0;
|
||||
if(mapeditor::drawplayer) drawMonsterType(moPlayer, c, view, 0xFFFFFFC0, m->footphase, 0xFFFFFFC0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user