forked from github/server
mapper kompiliert
This commit is contained in:
parent
dac2929c84
commit
be462fb67f
|
@ -561,7 +561,7 @@ NeuesSchiff(region * r)
|
||||||
modified = 1;
|
modified = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * oldbuildings[MAXBUILDINGTYPES] = {
|
static const char * oldbuildings[] = {
|
||||||
"castle",
|
"castle",
|
||||||
"lighthouse",
|
"lighthouse",
|
||||||
"mine",
|
"mine",
|
||||||
|
@ -580,6 +580,7 @@ static const char * oldbuildings[MAXBUILDINGTYPES] = {
|
||||||
"stonecircle",
|
"stonecircle",
|
||||||
"blessedstonecircle",
|
"blessedstonecircle",
|
||||||
"illusion",
|
"illusion",
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -593,7 +594,7 @@ NeueBurg(region * r)
|
||||||
q = 0;
|
q = 0;
|
||||||
y = 2;
|
y = 2;
|
||||||
wmove(win, y, 4);
|
wmove(win, y, 4);
|
||||||
for (i = 0; i < MAXBUILDINGTYPES; i++) {
|
for (i = 0; oldbuildings[i]; i++) {
|
||||||
sprintf(buf, "%d=%s; ", i, oldbuildings[i]);
|
sprintf(buf, "%d=%s; ", i, oldbuildings[i]);
|
||||||
q += strlen(buf);
|
q += strlen(buf);
|
||||||
if (q > SX - 20) {
|
if (q > SX - 20) {
|
||||||
|
@ -604,7 +605,7 @@ NeueBurg(region * r)
|
||||||
waddnstr(win, buf, -1);
|
waddnstr(win, buf, -1);
|
||||||
}
|
}
|
||||||
wrefresh(win);
|
wrefresh(win);
|
||||||
q = map_input(win, 2, 1, "Gebäudetyp", -1, MAXBUILDINGTYPES, 0);
|
q = map_input(win, 2, 1, "Gebäudetyp", -1, i, 0);
|
||||||
|
|
||||||
if (q < 0) {
|
if (q < 0) {
|
||||||
delwin(win);
|
delwin(win);
|
||||||
|
|
Loading…
Reference in New Issue