forked from github/server
fix curseinfo - klammer fehlte (wer löscht meine klammern weg??)
This commit is contained in:
parent
28fff31428
commit
abd85666ac
|
@ -241,11 +241,12 @@ print_curses(FILE * F, const faction * viewer, const void * obj, typ_t typ)
|
|||
if (fval(a->type, ATF_CURSE)) {
|
||||
|
||||
c = (curse *)a->data.v;
|
||||
if (c->type->curseinfo)
|
||||
if (c->type->curseinfo){
|
||||
if (c->type->cansee){
|
||||
self = c->type->cansee(viewer, obj, typ, c, self);
|
||||
}
|
||||
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
||||
}
|
||||
if (dh == 1) {
|
||||
if (!header) {
|
||||
header = 1;
|
||||
|
|
|
@ -730,11 +730,12 @@ print_curses(FILE *F, const faction *viewer, const void * obj, typ_t typ, int in
|
|||
|
||||
if (fval(a->type, ATF_CURSE)) {
|
||||
curse *c = (curse *)a->data.v;
|
||||
if (c->type->curseinfo)
|
||||
if (c->type->curseinfo) {
|
||||
if (c->type->cansee){
|
||||
self = c->type->cansee(viewer, obj, typ, c, self);
|
||||
}
|
||||
dh = c->type->curseinfo(viewer->locale, obj, typ, c, self);
|
||||
}
|
||||
if (dh == 1) {
|
||||
rnl(F);
|
||||
rparagraph(F, buf, indent, 0);
|
||||
|
|
|
@ -334,7 +334,7 @@ cinfo_sparkle(const struct locale * lang, const void * obj, typ_t typ, struct cu
|
|||
static struct curse_type ct_sparkle = { "sparkle",
|
||||
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
|
||||
"Dieser Zauber ist einer der ersten, den junge Magier in der Schule lernen.",
|
||||
NULL
|
||||
cinfo_sparkle
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
@ -361,7 +361,7 @@ static struct curse_type ct_strength = { "strength",
|
|||
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
||||
"Dieser Zauber vermehrt die Stärke der verzauberten Personen um ein "
|
||||
"vielfaches.",
|
||||
NULL
|
||||
cinfo_strength
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
@ -387,7 +387,7 @@ static struct curse_type ct_worse = {
|
|||
"worse",
|
||||
CURSETYP_UNIT, CURSE_SPREADMODULO, M_MEN,
|
||||
"",
|
||||
NULL
|
||||
cinfo_allskills
|
||||
};
|
||||
|
||||
/* ------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in New Issue