[Fix] Fixed the mounts offset due to the ortho projection.
This commit is contained in:
parent
cc33574b5e
commit
8c5a419903
@ -84,6 +84,9 @@ int ship_getMount(Ship* s, double dir, const int id, Vec2* p) {
|
||||
p->x = m->x * cm + m->y * sm;
|
||||
p->y = m->x * -sm + m->y * cm;
|
||||
|
||||
/* Correction for ortho perspective. */
|
||||
p->y *= M_SQRT1_2;
|
||||
|
||||
/* Don't forget to add height. */
|
||||
p->y += m->h;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user