forked from github/server
186a575c7c
"Der strict-aliasing fix zerstoert Referenzen" - mostly rewrote the whole delayed resolution code. http://eressea.upb.de/mantis/view.php?id=1431 "buildings and ships are leaking memory" - made a mistake deleting damaged ships. also: - WORMHOLE_MODULE is now a config option
48 lines
980 B
C
48 lines
980 B
C
/* vi: set ts=2:
|
|
*
|
|
*
|
|
* Eressea PB(E)M host Copyright (C) 1998-2003
|
|
* Christian Schlittchen (corwin@amber.kn-bremen.de)
|
|
* Katja Zedel (katze@felidae.kn-bremen.de)
|
|
* Henning Peters (faroul@beyond.kn-bremen.de)
|
|
* Enno Rehling (enno@eressea.de)
|
|
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
|
|
*
|
|
* This program may not be used, modified or distributed without
|
|
* prior permission by the authors of Eressea.
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include "follow.h"
|
|
|
|
#include <kernel/eressea.h>
|
|
#include <kernel/unit.h>
|
|
|
|
#include <util/attrib.h>
|
|
#include <util/storage.h>
|
|
#include <util/variant.h>
|
|
|
|
static int
|
|
read_follow(attrib * a, struct storage * store)
|
|
{
|
|
read_unit_reference(store); /* skip it */
|
|
return AT_READ_FAIL;
|
|
}
|
|
|
|
attrib_type at_follow = {
|
|
"follow", NULL, NULL, NULL, NULL, read_follow
|
|
};
|
|
|
|
attrib *
|
|
make_follow(struct unit * u)
|
|
{
|
|
attrib * a = a_new(&at_follow);
|
|
a->data.v = u;
|
|
return a;
|
|
}
|
|
|
|
void
|
|
init_follow(void)
|
|
{
|
|
at_register(&at_follow);
|
|
}
|