]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/sail.c
Update copyright notice
[empserver] / src / lib / update / sail.c
index eb0d3931a7cab388d7445a9db43fd975df5976cd..6c0b81c29aa14bb1a846fdd84df3302ee32f5f34 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
 #include "empobj.h"
 #include "unit.h"
 
+struct fltelemstr {
+    int num;
+    int own;
+    double mobil, mobcost;
+    struct fltelemstr *next;
+};
+
+struct fltheadstr {
+    int leader;
+    signed char real_q;
+/* defines for the real_q member */
+#define        LEADER_VIRTUAL  0
+#define        LEADER_REAL     1
+#define        LEADER_WRONGSECT        2
+    coord x, y;
+    natid own;
+    unsigned maxmoves;
+    struct fltelemstr *head;
+    struct fltheadstr *next;
+};
+
 static void fltp_to_list(struct fltheadstr *, struct emp_qelem *);
 
 static void
@@ -251,7 +272,7 @@ sail_nav_fleet(struct fltheadstr *fltp)
            fltp->maxmoves = 1;
        --fltp->maxmoves;
     }
-    shp_put(&ship_list, own);
+    unit_put(&ship_list, own);
     getship(sp->shp_uid, &ship);
     fltp->x = ship.shp_x;
     fltp->y = ship.shp_y;