]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/atta.c
commands: Rename the command functions
[empserver] / src / lib / commands / atta.c
index d947f10347c72fdf058e7c7ec493dbc0de15202f..cd2c84a2a33fdd1139a1cd0d5ae7d1f0bc293856 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2013, 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
@@ -40,7 +40,7 @@
 #include "ship.h"
 
 int
-atta(void)
+c_attack(void)
 {
     struct combat off[6];      /* attacking sectors */
     struct combat def[1];      /* defending sector */
@@ -72,10 +72,8 @@ atta(void)
     if (att_abort(A_ATTACK, NULL, def))
        return RET_FAIL;
 
-    /* Show what we're attacking, and check treaties */
-
-    if (att_show(def))
-       return RET_FAIL;
+    /* Show what we're attacking */
+    att_show(def);
 
     /* Ask about offensive support */