mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-04 14:30:35 +00:00
product:: shmup:: monsters rotate correctly
This commit is contained in:
parent
2cc1de4a02
commit
7096d152be
@ -2940,7 +2940,7 @@ bool celldrawer::draw_shmup_monster() {
|
|||||||
drawPlayerEffects(view, c, true);
|
drawPlayerEffects(view, c, true);
|
||||||
if(WDIM == 3) {
|
if(WDIM == 3) {
|
||||||
if(prod) {
|
if(prod) {
|
||||||
hyperpoint h = m->ori * C0;
|
hyperpoint h = m->ori * C0; // ztangent(1)
|
||||||
view = view * spin(-atan2(h[1], h[0]));
|
view = view * spin(-atan2(h[1], h[0]));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -3031,6 +3031,12 @@ bool celldrawer::draw_shmup_monster() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
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;
|
if(m->inBoat) m->footphase = 0;
|
||||||
color_t col = minf[m->type].color;
|
color_t col = minf[m->type].color;
|
||||||
if(m->type == moMimic)
|
if(m->type == moMimic)
|
||||||
|
Loading…
Reference in New Issue
Block a user