]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/nuke.c
Rewrite the broken code to move cargo with its carrier
[empserver] / src / lib / subs / nuke.c
index 3477d6debb4e10105c4a6457e22a497e3348fe94..4746c32f598c4ac6f0afc2260f2b6958267904a8 100644 (file)
 #include "file.h"
 #include "lost.h"
 #include "misc.h"
 #include "file.h"
 #include "lost.h"
 #include "misc.h"
-#include "nat.h"
-#include "nsc.h"
 #include "nuke.h"
 #include "nuke.h"
-#include "plane.h"
 #include "player.h"
 #include "prototypes.h"
 
 #include "player.h"
 #include "prototypes.h"
 
@@ -49,25 +46,12 @@ void
 nuk_postread(int n, void *ptr)
 {
     struct nukstr *np = ptr;
 nuk_postread(int n, void *ptr)
 {
     struct nukstr *np = ptr;
-    struct plnstr plane;
 
     if (np->nuk_uid != n) {
        logerror("nuk_postread: Error - %d != %d, zeroing.\n",
                 np->nuk_uid, n);
        memset(np, 0, sizeof(struct nukstr));
     }
 
     if (np->nuk_uid != n) {
        logerror("nuk_postread: Error - %d != %d, zeroing.\n",
                 np->nuk_uid, n);
        memset(np, 0, sizeof(struct nukstr));
     }
-
-    if (np->nuk_plane >= 0 && np->nuk_own && np->nuk_effic >= 0) {
-       if (getplane(np->nuk_plane, &plane)
-           && plane.pln_effic >= PLANE_MINEFF) {
-           if (np->nuk_x != plane.pln_x || np->nuk_y != plane.pln_y) {
-               time(&np->nuk_timestamp);
-               np->nuk_x = plane.pln_x;
-               np->nuk_y = plane.pln_y;
-           }
-       }
-    }
-
     player->owner = (player->god || np->nuk_own == player->cnum);
 }
 
     player->owner = (player->god || np->nuk_own == player->cnum);
 }