From ea484174e0cd6d623bd792e90600a1160e7a3ff7 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Thu, 8 Aug 2013 18:37:43 +0100
Subject: [PATCH] [Fix] Missile resist should not be 100 times stronger. :/

---
 src/outfit.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/outfit.c b/src/outfit.c
index c516536..0fe06e6 100644
--- a/src/outfit.c
+++ b/src/outfit.c
@@ -451,6 +451,10 @@ static void outfit_parseSAmmo(Outfit* tmp, const xmlNodePtr parent) {
     else if(xml_isNode(node, "damage"))
       outfit_parseDamage(&tmp->u.amm.dtype, &tmp->u.amm.damage, node);
   } while((node = node->next));
+  
+  /* Post-processing. */
+  tmp->u.amm.resist /= 100.; /* Set it in per one. */
+
 #define MELEMENT(o,s) if(o) WARN("Outfit '%s' missing '"s"' element", tmp->name)
   MELEMENT(tmp->u.amm.gfx_space == NULL,  "gfx");
   MELEMENT((sound_lock != NULL) && (tmp->u.amm.sound == 0), "sound");