]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/newe.c
commands: Rename the command functions
[empserver] / src / lib / commands / newe.c
index 0ebd816cc48f72acee6beabc4c9e27964ba9ff80..398cc04b004bc9383b1073612a2ade7f27de5b79 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2016, 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
 #include "commands.h"
 #include "item.h"
 #include "optlist.h"
+#include "update.h"
 
 int
-newe(void)
+c_neweff(void)
 {
     struct natstr *natp;
     struct sctstr sect;
@@ -55,7 +56,7 @@ newe(void)
            continue;
        if (!sect.sct_off) {
            natp = getnatp(sect.sct_own);
-           sect.sct_avail = do_feed(&sect, natp, etu_per_update, 1);
+           do_feed(&sect, natp, etu_per_update, 1);
            buildeff(&sect);
        }
        if (nsect++ == 0) {