]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/shpsub.c
Compute radar range in one place, rad_range()
[empserver] / src / lib / subs / shpsub.c
index 54dc821b9e1c7fe7c24028a2c1d5e43f5c48f5e7..d5063bc7b055fdcb31fcf95af10947092e1a6ba0 100644 (file)
@@ -732,7 +732,6 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor,
     coord newy;
     int stopping = 0;
     double mobcost;
-    double tech;               /* for mapping */
     char dp[80];
     int navigate;
 
@@ -785,11 +784,10 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor,
        putship(mlp->unit.ship.shp_uid, &mlp->unit.ship);
 
        /* Now update the map for this ship */
-       tech = techfact(mlp->unit.ship.shp_tech,
-                       ((struct mchrstr *)mlp->chrp)->m_vrnge);
        rad_map_set(mlp->unit.ship.shp_own,
                    mlp->unit.ship.shp_x, mlp->unit.ship.shp_y,
-                   mlp->unit.ship.shp_effic, (int)tech);
+                   mlp->unit.ship.shp_effic, mlp->unit.ship.shp_tech,
+                   ((struct mchrstr *)mlp->chrp)->m_vrnge);
     }
     if (QEMPTY(list))
        return stopping;