forked from github/server
asciification
This commit is contained in:
parent
ffccf8014f
commit
2e1bd01c54
3 changed files with 8 additions and 10 deletions
|
@ -147,7 +147,7 @@ static void destroy_road(unit * u, int nmax, struct order *ord)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int recycle(unit *u, construction *con, int size) {
|
static int recycle(unit *u, construction *con, int size) {
|
||||||
/* TODO: Nicht an ZERST<EFBFBD>RE mit Punktangabe angepasst! */
|
/* TODO: Nicht an ZERSTOERE mit Punktangabe angepasst! */
|
||||||
int c;
|
int c;
|
||||||
for (c = 0; con->materials[c].number; ++c) {
|
for (c = 0; con->materials[c].number; ++c) {
|
||||||
const requirement *rq = con->materials + c;
|
const requirement *rq = con->materials + c;
|
||||||
|
@ -545,8 +545,8 @@ static int build_limited(unit * u, const construction * con, int completed, int
|
||||||
|
|
||||||
/* Hier ist entweder maxsize == -1, oder completed < maxsize.
|
/* Hier ist entweder maxsize == -1, oder completed < maxsize.
|
||||||
* Andernfalls ist das Datenfile oder sonstwas kaputt...
|
* Andernfalls ist das Datenfile oder sonstwas kaputt...
|
||||||
* (enno): Nein, das ist f<EFBFBD>r Dinge, bei denen die n<EFBFBD>chste Ausbaustufe
|
* (enno): Nein, das ist fuer Dinge, bei denen die naechste Ausbaustufe
|
||||||
* die gleiche wie die vorherige ist. z.b. gegenst<EFBFBD>nde.
|
* die gleiche wie die vorherige ist. z.b. Gegenstaende.
|
||||||
*/
|
*/
|
||||||
if (con->maxsize > 0) {
|
if (con->maxsize > 0) {
|
||||||
completed = completed % con->maxsize;
|
completed = completed % con->maxsize;
|
||||||
|
@ -870,11 +870,11 @@ build_building(unit * u, const building_type * btype, int id, int want, order *
|
||||||
btname = LOC(lang, btype->_name);
|
btname = LOC(lang, btype->_name);
|
||||||
|
|
||||||
if (want <= built) {
|
if (want <= built) {
|
||||||
/* geb<EFBFBD>ude fertig */
|
/* gebaeude fertig */
|
||||||
new_order = default_order(lang);
|
new_order = default_order(lang);
|
||||||
}
|
}
|
||||||
else if (want != INT_MAX && btname) {
|
else if (want != INT_MAX && btname) {
|
||||||
/* reduzierte restgr<EFBFBD><EFBFBD>e */
|
/* reduzierte restgroesse */
|
||||||
const char *hasspace = strchr(btname, ' ');
|
const char *hasspace = strchr(btname, ' ');
|
||||||
if (hasspace) {
|
if (hasspace) {
|
||||||
new_order =
|
new_order =
|
||||||
|
@ -886,7 +886,7 @@ build_building(unit * u, const building_type * btype, int id, int want, order *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (btname) {
|
else if (btname) {
|
||||||
/* Neues Haus, Befehl mit Geb<EFBFBD>udename */
|
/* Neues Haus, Befehl mit Gebaeudename */
|
||||||
const char *hasspace = strchr(btname, ' ');
|
const char *hasspace = strchr(btname, ' ');
|
||||||
if (hasspace) {
|
if (hasspace) {
|
||||||
new_order = create_order(K_MAKE, lang, "\"%s\" %i", btname, b->no);
|
new_order = create_order(K_MAKE, lang, "\"%s\" %i", btname, b->no);
|
||||||
|
|
|
@ -1000,8 +1000,6 @@ static char *makename(void)
|
||||||
*handle_end = "nlrdst",
|
*handle_end = "nlrdst",
|
||||||
*vowels = "aaaaaaaaaaaeeeeeeeeeeeeiiiiiiiiiiioooooooooooouuuuuuuuuuyy";
|
*vowels = "aaaaaaaaaaaeeeeeeeeeeeeiiiiiiiiiiioooooooooooouuuuuuuuuuyy";
|
||||||
|
|
||||||
/* const char * vowels_latin1 = "aaaaaaaaaàâeeeeeeeeeéèêiiiiiiiiiíîoooooooooóòôuuuuuuuuuúyy"; */
|
|
||||||
|
|
||||||
nk = strlen(kons);
|
nk = strlen(kons);
|
||||||
ne = strlen(handle_end);
|
ne = strlen(handle_end);
|
||||||
nv = strlen(vowels);
|
nv = strlen(vowels);
|
||||||
|
@ -1114,7 +1112,7 @@ void init_region(region *r)
|
||||||
|
|
||||||
void terraform_region(region * r, const terrain_type * terrain)
|
void terraform_region(region * r, const terrain_type * terrain)
|
||||||
{
|
{
|
||||||
/* Resourcen, die nicht mehr vorkommen koennen, löschen */
|
/* Resourcen, die nicht mehr vorkommen koennen, loeschen */
|
||||||
const terrain_type *oldterrain = r->terrain;
|
const terrain_type *oldterrain = r->terrain;
|
||||||
rawmaterial **lrm = &r->resources;
|
rawmaterial **lrm = &r->resources;
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ static void do_shock(unit * u, const char *reason)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dies ist ein Hack, um das skillmod und familiar-Attribut beim Mage
|
/* Dies ist ein Hack, um das skillmod und familiar-Attribut beim Mage
|
||||||
* zu l<EFBFBD>schen wenn der Familiar get<EFBFBD>tet wird. Da sollten wir <EFBFBD>ber eine
|
* zu loeschen wenn der Familiar getoetet wird. Da sollten wir ueber eine
|
||||||
* saubere Implementation nachdenken. */
|
* saubere Implementation nachdenken. */
|
||||||
|
|
||||||
if (strcmp(reason, "trigger") == 0) {
|
if (strcmp(reason, "trigger") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue