]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/main.c
Update copyright notice
[empserver] / src / lib / update / main.c
index 8747c65a29d871e937033194599dcad6b656ec09..730befbb60bed25a9407146303927211bd1fae43 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  main.c: World update main function
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare, 1994
  *     Steve McClure, 1996
@@ -42,6 +42,7 @@
 #include "journal.h"
 #include "player.h"
 #include "server.h"
+#include "unit.h"
 #include "update.h"
 
 long money[MAXNOC];
@@ -132,7 +133,6 @@ update_main(void)
     prod_nat(etu);
     age_levels(etu);
     free(bp);
-    /*flushwu(); */
     if (opt_SLOW_WAR) {
        /* Update war declarations */
        /* MOBILIZATION->SITZKRIEG->AT_WAR */
@@ -170,8 +170,10 @@ update_main(void)
     ef_flush(EF_SHIP);
     ef_flush(EF_PLANE);
     ef_flush(EF_LAND);
+    unit_cargo_init();
     delete_old_announcements();
     delete_old_news();
+    delete_old_lostitems();
     /* Clear all the telegram flags */
     for (cn = 0; cn < MAXNOC; cn++)
        clear_telegram_is_new(cn);