]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/maps.c
Update copyright notice.
[empserver] / src / lib / common / maps.c
index 4139f240eaf0f4fbe17099c8071cdc97b5f30ac8..9b028e903f9a97e0d0040aa49ae69ffe89925898 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-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -348,7 +348,7 @@ unit_map(int unit_type, int uid, struct nstr_sect *nsp, char *originp)
     char *name;
 
     gp = get_empobjp(unit_type, uid);
-    if (!gp || gp->own != player->cnum || gp->own == 0)
+    if (!gp || (gp->own != player->cnum && !player->god) || gp->own == 0)
        return RET_FAIL;
 
     if (unit_type == EF_NUKE)