[Fix] Fixed the mounts offset due to the ortho projection.

This commit is contained in:
Allanis 2014-05-20 21:32:11 +01:00
parent cc33574b5e
commit 8c5a419903

View File

@ -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->x = m->x * cm + m->y * sm;
p->y = m->x * -sm + m->y * cm; p->y = m->x * -sm + m->y * cm;
/* Correction for ortho perspective. */
p->y *= M_SQRT1_2;
/* Don't forget to add height. */ /* Don't forget to add height. */
p->y += m->h; p->y += m->h;