]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/sona.c
Update copyright notice
[empserver] / src / lib / commands / sona.c
index 2941cf1d24db150f4235a60f8dab69d5cfa5ef4d..a6ba97b472f3598959ef1ca1ad03ec0065867abb 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-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -29,7 +29,7 @@
  *  Known contributors to this file:
  *     Jim Griffith, 1989
  *     Ken Stevens, 1995
- *     Markus Armbruster, 2004-2012
+ *     Markus Armbruster, 2004-2015
  */
 
 #include <config.h>
@@ -162,10 +162,8 @@ sona(void)
                       "Sonar ping from %s detected by %s!\n",
                       xyas(ship.shp_x, ship.shp_y,
                            targ.shp_own), prship(&targ));
-               if (targ.shp_rflags & RET_SONARED) {
+               if (targ.shp_rflags & RET_SONARED)
                    retreat_ship(&targ, targ.shp_own, 's');
-                   putship(targ.shp_uid, &targ);
-               }
            }
            if (dist > vrange)
                continue;