tippfehler neue zaubermessages

This commit is contained in:
Enno Rehling 2004-05-09 08:46:46 +00:00
parent f6fa9bcbb3
commit b78b840cdd
2 changed files with 8 additions and 3 deletions

View File

@ -2810,7 +2810,7 @@ magic(void)
}
if (range > 1024) { /* (2^10) weiter als 10 Regionen entfernt */
ADDMSG(&u->faction->msgs, msg_message("spellfail::nolevel",
"mage region order target", u, u->region, so->s,
"mage region command target", u, u->region, so->s,
gc_add(strdup(regionid(target_r)))));
continue;
}
@ -2821,7 +2821,7 @@ magic(void)
if (ilevel!=level) {
level = ilevel;
ADDMSG(&u->faction->msgs, msg_message("spellfail::nolevel",
"mage region order", u, u->region, so->s));
"mage region command", u, u->region, so->s));
}
}
/* Vertrautenmagie */

View File

@ -142,7 +142,12 @@ locale_setstring(locale * lang, const char * key, const char * value)
find->key = strdup(key);
find->str = strdup(value);
}
else assert(!strcmp(find->str, value) || !"duplicate string for key");
else {
if (strcmp(find->str, value)==0) {
log_error(("Duplicate key %s for '%s' and '%s'\n", key, value, find->str));
}
assert(!strcmp(find->str, value) || !"duplicate string for key");
}
}
const char *