forked from github/server
- MACHEN ALLES "Wasser des Lebens" sollte jetzt gehen.
- Alte Funktion entfernt.
This commit is contained in:
parent
b34b63fd25
commit
028753b06b
|
@ -97,6 +97,7 @@
|
|||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <attributes/otherfaction.h>
|
||||
|
||||
|
@ -3826,8 +3827,16 @@ use_cmd(unit * u, struct order * ord)
|
|||
t = getstrtoken();
|
||||
n = atoi(t);
|
||||
if (n==0) {
|
||||
n = 1;
|
||||
if (findparam(t, u->faction->locale) == P_ANY) {
|
||||
/* BENUTZE ALLES Yanxspirit */
|
||||
n = INT_MAX;
|
||||
t = getstrtoken();
|
||||
} else {
|
||||
/* BENUTZE Yanxspirit */
|
||||
n = 1;
|
||||
}
|
||||
} else {
|
||||
/* BENUTZE 42 Yanxspirit */
|
||||
t = getstrtoken();
|
||||
}
|
||||
itype = finditemtype(t, u->faction->locale);
|
||||
|
|
|
@ -1572,16 +1572,6 @@ report_donations(void)
|
|||
}
|
||||
}
|
||||
|
||||
static const char*
|
||||
MailitPath(void)
|
||||
{
|
||||
static const char * value = NULL;
|
||||
if (value==NULL) {
|
||||
value = get_param(global.parameters, "report.mailit");
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
static void
|
||||
write_script(FILE * F, const faction * f)
|
||||
{
|
||||
|
@ -1720,4 +1710,4 @@ reports_init(void)
|
|||
/* register alternative visibility functions */
|
||||
register_function((pf_generic)view_neighbours, "view_neighbours");
|
||||
register_function((pf_generic)view_regatta, "view_regatta");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ typedef struct report_context {
|
|||
void * userdata;
|
||||
} report_context;
|
||||
|
||||
typedef void (*report_fun)(FILE * F, report_context * ctx);
|
||||
typedef int (*report_fun)(FILE * F, report_context * ctx);
|
||||
extern void register_reporttype(const char * extension, report_fun write, int flag);
|
||||
|
||||
extern void report_item(const struct unit * owner, const struct item * i, const struct faction * viewer, const char ** name, const char ** basename, int * number, boolean singular);
|
||||
|
|
Loading…
Reference in New Issue