BURG -> GEBÄUDE

This commit is contained in:
Enno Rehling 2004-03-08 18:39:34 +00:00
parent 687c4507d6
commit 83cda2ef62
2 changed files with 12 additions and 10 deletions

View File

@ -2980,6 +2980,7 @@ renumber(void)
break;
case P_BUILDING:
case P_GEBAEUDE:
if(!u->building) {
cmistake(u,S->s,145,MSG_EVENT);
continue;

View File

@ -1338,16 +1338,17 @@ getkeyword (const struct locale * lang)
param_t
findparam(const char *s, const struct locale * lang)
{
struct lstr * lnames = get_lnames(lang);
const building_type * btype;
struct lstr * lnames = get_lnames(lang);
const building_type * btype;
int i;
if (findtoken(&lnames->tokens[UT_PARAM], s, (void**)&i)==E_TOK_NOMATCH) {
btype = findbuildingtype(s, lang);
if (btype!=NULL) return (param_t) P_BUILDING;
return NOPARAM;
}
return (param_t)i;
int i;
if (findtoken(&lnames->tokens[UT_PARAM], s, (void**)&i)==E_TOK_NOMATCH) {
btype = findbuildingtype(s, lang);
if (btype!=NULL) return (param_t) P_GEBAEUDE;
return NOPARAM;
}
if (i==P_BUILDING) return P_GEBAEUDE;
return (param_t)i;
}
param_t