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 <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
#include <attributes/otherfaction.h>
|
#include <attributes/otherfaction.h>
|
||||||
|
|
||||||
|
@ -3826,8 +3827,16 @@ use_cmd(unit * u, struct order * ord)
|
||||||
t = getstrtoken();
|
t = getstrtoken();
|
||||||
n = atoi(t);
|
n = atoi(t);
|
||||||
if (n==0) {
|
if (n==0) {
|
||||||
n = 1;
|
if (findparam(t, u->faction->locale) == P_ANY) {
|
||||||
|
/* BENUTZE ALLES Yanxspirit */
|
||||||
|
n = INT_MAX;
|
||||||
|
t = getstrtoken();
|
||||||
} else {
|
} else {
|
||||||
|
/* BENUTZE Yanxspirit */
|
||||||
|
n = 1;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
/* BENUTZE 42 Yanxspirit */
|
||||||
t = getstrtoken();
|
t = getstrtoken();
|
||||||
}
|
}
|
||||||
itype = finditemtype(t, u->faction->locale);
|
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
|
static void
|
||||||
write_script(FILE * F, const faction * f)
|
write_script(FILE * F, const faction * f)
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,7 +94,7 @@ typedef struct report_context {
|
||||||
void * userdata;
|
void * userdata;
|
||||||
} report_context;
|
} 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 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);
|
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