forked from github/server
Merge pull request #45 from badgerman/master
Bug 2032: Rename FIGHT -> COMBAT, again
This commit is contained in:
commit
209776b751
|
@ -2173,7 +2173,7 @@
|
||||||
<string name="help">
|
<string name="help">
|
||||||
<text locale="de">HELFEN</text>
|
<text locale="de">HELFEN</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="fight">
|
<string name="combat">
|
||||||
<text locale="de">KÄMPFEN</text>
|
<text locale="de">KÄMPFEN</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="ready">
|
<string name="ready">
|
||||||
|
|
|
@ -1451,9 +1451,6 @@
|
||||||
<string name="help">
|
<string name="help">
|
||||||
<text locale="en">HELP</text>
|
<text locale="en">HELP</text>
|
||||||
</string>
|
</string>
|
||||||
<string name="fight">
|
|
||||||
<text locale="en">FIGHT</text>
|
|
||||||
</string>
|
|
||||||
<string name="ready">
|
<string name="ready">
|
||||||
<text locale="en">COMBATSPELL</text>
|
<text locale="en">COMBATSPELL</text>
|
||||||
</string>
|
</string>
|
||||||
|
|
|
@ -673,7 +673,7 @@ static void init_gms(void)
|
||||||
faction *f;
|
faction *f;
|
||||||
|
|
||||||
for (f = factions; f; f = f->next) {
|
for (f = factions; f; f = f->next) {
|
||||||
const attrib *a = a_findc(f->attribs, &at_gm);
|
attrib *a = a_find(f->attribs, &at_gm);
|
||||||
|
|
||||||
if (a != NULL)
|
if (a != NULL)
|
||||||
fset(f, FFL_GM);
|
fset(f, FFL_GM);
|
||||||
|
|
|
@ -103,7 +103,7 @@ const char *keywords[MAXKEYWORDS] = {
|
||||||
"research",
|
"research",
|
||||||
"give",
|
"give",
|
||||||
"help",
|
"help",
|
||||||
"fight",
|
"combat",
|
||||||
"ready",
|
"ready",
|
||||||
"buy",
|
"buy",
|
||||||
"contact",
|
"contact",
|
||||||
|
|
|
@ -69,6 +69,13 @@ static void test_attrib_nexttype(CuTest * tc)
|
||||||
CuAssertPtrEquals(tc, a, alist->nexttype);
|
CuAssertPtrEquals(tc, a, alist->nexttype);
|
||||||
CuAssertPtrEquals(tc, 0, a->nexttype);
|
CuAssertPtrEquals(tc, 0, a->nexttype);
|
||||||
|
|
||||||
|
a_remove(&alist, alist);
|
||||||
|
CuAssertPtrEquals(tc, a, alist->nexttype);
|
||||||
|
|
||||||
|
CuAssertPtrNotNull(tc, (a = a_add(&alist, a_new(&at_bar))));
|
||||||
|
a_remove(&alist, alist->nexttype);
|
||||||
|
CuAssertPtrEquals(tc, a, alist->nexttype);
|
||||||
|
|
||||||
a_removeall(&alist, &at_foo);
|
a_removeall(&alist, &at_foo);
|
||||||
a_removeall(&alist, &at_bar);
|
a_removeall(&alist, &at_bar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue