]> git.pond.sub.org Git - empserver/commitdiff
(update_main): Move logging of the update up to a more logical place.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 31 Dec 2006 13:16:17 +0000 (13:16 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 31 Dec 2006 13:16:17 +0000 (13:16 +0000)
src/lib/update/main.c

index a5abb88df2ed55eab294329a76798b3741cae936..d5032a3549ea62db964f43b1d9b74a81214803e0 100644 (file)
@@ -66,6 +66,9 @@ update_main(void *unused)
     if (CANT_HAPPEN(!update_pending))
         update_pending = 1;
 
+    logerror("production update (%d etus)", etu);
+    journal_update(etu);
+
     /* First, make sure all mobility is updated correctly. */
     if (opt_MOB_ACCESS) {
        mob_ship(etu);
@@ -81,8 +84,6 @@ update_main(void *unused)
      * sector production routine (for producing education,
      * happiness, and printing out the state of the nation)
      */
-    logerror("production update (%d etus)", etu);
-    journal_update(etu);
     memset(pops, 0, sizeof(pops));
     memset(air_money, 0, sizeof(air_money));
     memset(sea_money, 0, sizeof(sea_money));