/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2012, 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:
* Dave Pare, 1989
* Steve McClure, 1996
- * Markus Armbruster, 2004-2011
+ * Markus Armbruster, 2004-2016
*/
#include <config.h>
-#include "file.h"
#include "lost.h"
#include "misc.h"
#include "optlist.h"
#include "prototypes.h"
#include "ship.h"
#include "unit.h"
+#include "update.h"
void
shp_postread(int n, void *ptr)
memset(sp, 0, sizeof(struct shpstr));
}
- if (opt_MOB_ACCESS)
- shp_do_upd_mob(sp);
player->owner = (player->god || sp->shp_own == player->cnum);
+
+ if (opt_MOB_ACCESS & sp->shp_own && !update_running)
+ mob_inc_ship(sp, game_tick_to_now(&sp->shp_access));
}
void