]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/caploss.c
Update copyright notice
[empserver] / src / lib / subs / caploss.c
index 53d1568d80d1ab2cf1e291e7bef051f814c56b30..2755c92a8ca1e29ff2df3b92b850057be4bab73b 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-2018, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
  *
  *  Known contributors to this file:
  *     Steve McClure, 2000
- *     Markus Armbruster, 2007-2008
+ *     Markus Armbruster, 2007-2013
  */
 
 #include <config.h>
 
 #include "commodity.h"
-#include "file.h"
 #include "loan.h"
 #include "nat.h"
 #include "news.h"
@@ -49,8 +48,7 @@ caploss(struct sctstr *sp, natid coun, char *msg)
     struct natstr *natp;
     struct lonstr loan;
     struct comstr comm;
-    long lose;
-    long gain;
+    int lose, gain;
     char *verb;
     int loan_num, comm_num;
 
@@ -81,9 +79,9 @@ caploss(struct sctstr *sp, natid coun, char *msg)
     verb = sp->sct_own ? "sacked" : "obliterated";
     wu(0, coun, "* %s just %s your capital! *\n",
        cname(player->cnum), verb);
-    wu(0, coun, "You lost $%ld and they gained $%ld\n", lose, gain);
+    wu(0, coun, "You lost $%d and they gained $%d\n", lose, gain);
     wu(0, coun, "You need to use 'capital' to activate a new capital.\n");
-    wu(0, 0, "%s just %s %s's capital and gained $%ld\n",
+    wu(0, 0, "%s just %s %s's capital and gained $%d\n",
        cname(player->cnum), verb, cname(coun), gain);
 
     if (opt_LOANS && sp->sct_own) {
@@ -91,7 +89,7 @@ caploss(struct sctstr *sp, natid coun, char *msg)
            if (loan.l_status == LS_SIGNED && loan.l_loner == coun) {
                loan.l_loner = player->cnum;
                putloan(loan_num, &loan);
-               pr("Loan %d has been transfered over to you\n", loan_num);
+               pr("Loan %d has been transferred over to you\n", loan_num);
            }
        }
     }