forked from github/server
Undo ZEIGE mit resourcestrings. Mache ich später mal richtig..
This commit is contained in:
parent
135d3ac079
commit
7ff3d54ba5
1 changed files with 4 additions and 2 deletions
|
@ -2190,9 +2190,11 @@ display_item(faction *f, unit *u, const item_type * itype)
|
|||
const char *name, *info;
|
||||
|
||||
if (u && *i_find(&u->items, itype) == NULL) return false;
|
||||
/*
|
||||
info = mkname("info", itype->rtype->_name[0]);
|
||||
name = LOC(u->faction->locale, info);
|
||||
if (name==info) {
|
||||
if (strcmp(name, info)==0) {
|
||||
*/
|
||||
name = resourcename(itype->rtype, 0);
|
||||
sprintf(filename, "%s/%s/items/%s", resourcepath(), locale_name(f->locale), name);
|
||||
fp = fopen(filename, "r");
|
||||
|
@ -2217,7 +2219,7 @@ display_item(faction *f, unit *u, const item_type * itype)
|
|||
}
|
||||
fclose(fp);
|
||||
name = buf;
|
||||
}
|
||||
/* } */
|
||||
ADDMSG(&f->msgs, msg_message("displayitem", "item description", itype->rtype, strdup(name)));
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue