removing unused attribute (aggressive)

fixed normalvariate
familiars, ignore missing init function
This commit is contained in:
Enno Rehling 2006-02-10 22:10:41 +00:00
parent 8b0314be3b
commit 127f32d0ef
6 changed files with 2 additions and 42 deletions

View File

@ -8,7 +8,6 @@ SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
aggressive.c
alliance.c
attributes.c
fleechance.c

View File

@ -1,34 +0,0 @@
/* 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-pbem.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 "aggressive.h"
#include <attrib.h>
attrib_type at_aggressive = {
"aggressive",
NULL,
NULL,
NULL,
a_writedefault,
a_readdefault,
ATF_UNIQUE
};
void
init_aggressive(void)
{
at_register(&at_aggressive);
}

View File

@ -10,7 +10,7 @@
*/
#include <config.h>
#include "eressea.h"
#include <eressea.h>
#include "alliance.h"
#include <kernel/save.h>

View File

@ -13,6 +13,7 @@
*/
#include <config.h>
#include <eressea.h>
#include "reduceproduction.h"
#include <kernel/save.h>
#include <util/attrib.h>

View File

@ -537,9 +537,6 @@ select_familiar(const race * magerace, magic_t magiegebiet)
retval = magerace->familiars[magiegebiet];
}
if (retval!=NULL && retval->init_familiar!=NULL) {
return NULL;
}
return retval;
}

View File

@ -32,9 +32,6 @@
#define drand() ((rand()%RAND_MAX)/(double)RAND_MAX)
#define M_PIl 3.1415926535897932384626433832795029L /* pi */
static double nv_next;
static char valid_next = 0;
/* NormalRand aus python, random.py geklaut, dort ist Referenz auf
* den Algorithmus. mu = Mittelwert, sigma = Standardabweichung. */
double