]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/spy.c
commands: Rename the command functions
[empserver] / src / lib / commands / spy.c
index ff5ce54879c2cfe87963d9094aa809acfd85d29e..d9dafe7f05f2cc510be689015d01669974367470 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -54,10 +54,10 @@ static void prunits(int, int);
 static char *player_relstr(natid);
 
 int
-spy(void)
+c_spy(void)
 {
     natid own;
-    int relat;
+    enum relations relat;
     coord x, y;
     coord nx, ny;
     int military;
@@ -83,7 +83,7 @@ spy(void)
     btucost = (nsects / 40) + 1;
     natp = getnatp(player->cnum);
     if (natp->nat_btu < btucost) {
-       pr("You don't have the BTU's for spying on that scale!\n");
+       pr("You don't have the BTUs for spying on that scale!\n");
        return RET_FAIL;
     }
     bitmap = calloc((WORLD_SZ() + 7) / 8, 1);
@@ -252,7 +252,7 @@ prplanes(int x, int y)
 static char *
 player_relstr(natid them)
 {
-    int rel = relations_with(player->cnum, them);
+    enum relations rel = relations_with(player->cnum, them);
 
     if (rel == ALLIED)
        return "Allied";