product:: shmup:: monsters rotate correctly

This commit is contained in:
Zeno Rogue 2020-03-21 09:35:54 +01:00
parent 2cc1de4a02
commit 7096d152be
1 changed files with 7 additions and 1 deletions

View File

@ -2940,7 +2940,7 @@ bool celldrawer::draw_shmup_monster() {
drawPlayerEffects(view, c, true);
if(WDIM == 3) {
if(prod) {
hyperpoint h = m->ori * C0;
hyperpoint h = m->ori * C0; // ztangent(1)
view = view * spin(-atan2(h[1], h[0]));
}
else {
@ -3031,6 +3031,12 @@ bool celldrawer::draw_shmup_monster() {
}
default:
if(WDIM == 3) {
if(prod) {
hyperpoint h = m->ori * xtangent(1);
view = view * spin(-atan2(h[1], h[0]));
}
}
if(m->inBoat) m->footphase = 0;
color_t col = minf[m->type].color;
if(m->type == moMimic)