/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2015, 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, 1996
- * Markus Armbruster, 2004-2011
+ * Markus Armbruster, 2004-2016
*/
#include <config.h>
-#include "file.h"
#include "land.h"
#include "lost.h"
#include "misc.h"
#include "player.h"
#include "prototypes.h"
#include "unit.h"
+#include "update.h"
void
lnd_postread(int n, void *ptr)
memset(lp, 0, sizeof(struct lndstr));
}
- if (opt_MOB_ACCESS)
- lnd_do_upd_mob(lp);
player->owner = (player->god || lp->lnd_own == player->cnum);
+
+ if (opt_MOB_ACCESS && lp->lnd_own && !update_running)
+ mob_inc_land(lp, game_tick_to_now(&lp->lnd_access));
}
void