]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/skyw.c
Update copyright notice
[empserver] / src / lib / commands / skyw.c
index 90f27b7e49c8672c25ac3254c4628043cfe7437b..4e659bcc038b9c1e9c7ebb662628880c9c29a010 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *  ---
  *
  *  skyw.c: Look at satellites in the sky.
- * 
+ *
  *  Known contributors to this file:
  *     Ken Stevens, 1995
  */
 
 #include <config.h>
 
-#include "misc.h"
-#include "player.h"
-#include "sect.h"
-#include "plane.h"
-#include "nat.h"
-#include "xy.h"
-#include "nsc.h"
-#include "file.h"
 #include "commands.h"
 #include "optlist.h"
+#include "plane.h"
 
 #define        TSIZE   200
 
@@ -81,7 +74,7 @@ skyw(void)
     while (nxtitem(&ni, &skyp->s_sat)) {
        if (!skyp->s_sat.pln_own)
            continue;
-       if (!(skyp->s_sat.pln_flags & PLN_LAUNCHED))
+       if (!pln_is_in_orbit(&skyp->s_sat))
            continue;
        getsect(skyp->s_sat.pln_x, skyp->s_sat.pln_y, &sect);
        n = scthash(skyp->s_sat.pln_x, skyp->s_sat.pln_y, TSIZE);