diff --git a/dat/ship.xml b/dat/ship.xml index 82b1c2d..07a546d 100644 --- a/dat/ship.xml +++ b/dat/ship.xml @@ -516,8 +516,8 @@ 0 1 2 - 3 - 4 + 3 + 4 5 @@ -560,8 +560,8 @@ 0 1 2 - 3 - 4 + 3 + 4 5 diff --git a/src/ship.c b/src/ship.c index 2013dfd..04812e7 100644 --- a/src/ship.c +++ b/src/ship.c @@ -413,6 +413,9 @@ static int ship_parse(Ship* tmp, xmlNodePtr parent) { free(stmp); xmlr_attr(cur, "y", stmp); tmp->mounts[id].y = atof(stmp); + /* Since we measure in pixels, we have to modify it so it + * doesn't get corrected by the ortho correction. */ + tmp->mounts[id].y *= M_SQRT2; free(stmp); xmlr_attr(cur, "h", stmp); tmp->mounts[id].h = atof(stmp);