From 8c5a41990398381082c8dbdb5df5d97e469e6c2f Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Tue, 20 May 2014 21:32:11 +0100
Subject: [PATCH] [Fix] Fixed the mounts offset due to the ortho projection.

---
 src/ship.c | 3 +++
 1 file changed, 3 insertions(+)

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;