]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/sate.c
Update copyright notice
[empserver] / src / lib / commands / sate.c
index 6e5530f600d8c0c8d49a80e84c7d8b7d00c9ad83..ffecfb2b17f4000bedb6aacd553ab089baf256bc 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-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  sate.c: Do satellite maps/reports.
- * 
+ *
  *  Known contributors to this file:
  *     Edward M. Rynes Esq, 1988
  *     Ken Stevens, 1995
 
 #include <config.h>
 
-#include "misc.h"
-#include "player.h"
-#include "xy.h"
-#include "plane.h"
-#include "nsc.h"
-#include "file.h"
-#include "nat.h"
+#include <ctype.h>
 #include "commands.h"
 #include "optlist.h"
+#include "plane.h"
 
 int
 sate(void)
@@ -70,7 +65,7 @@ sate(void)
        return RET_FAIL;
     }
 
-    if (!(plane.pln_flags & PLN_LAUNCHED)) {
+    if (!pln_is_in_orbit(&plane)) {
        pr("%s isn't in orbit\n", prplane(&plane));
        return RET_FAIL;
     }