diff --git a/src/ship.c b/src/ship.c index 1b6effd..51c51f8 100644 --- a/src/ship.c +++ b/src/ship.c @@ -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;