/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2017, 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, 2006-2011
+ * Markus Armbruster, 2006-2016
*/
#include <config.h>
-#include "file.h"
#include "lost.h"
#include "misc.h"
#include "optlist.h"
#include "player.h"
#include "prototypes.h"
#include "unit.h"
+#include "update.h"
void
pln_postread(int n, void *ptr)
pp->pln_uid, n);
memset(pp, 0, sizeof(struct plnstr));
}
+
player->owner = (player->god || pp->pln_own == player->cnum);
- if (opt_MOB_ACCESS)
- pln_do_upd_mob(pp);
+
+ if (opt_MOB_ACCESS && pp->pln_own && !update_running)
+ mob_inc_plane(pp, game_tick_to_now(&pp->pln_access));
}
void