forked from github/server
mapper kompiliert auch wieder.
This commit is contained in:
parent
865f40ec9a
commit
6617c133c5
|
@ -561,6 +561,27 @@ NeuesSchiff(region * r)
|
||||||
modified = 1;
|
modified = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char * oldbuildings[MAXBUILDINGTYPES] = {
|
||||||
|
"castle",
|
||||||
|
"lighthouse",
|
||||||
|
"mine",
|
||||||
|
"quarry",
|
||||||
|
"harbour",
|
||||||
|
"academy",
|
||||||
|
"magictower",
|
||||||
|
"smithy",
|
||||||
|
"sawmill",
|
||||||
|
"stables",
|
||||||
|
"monument",
|
||||||
|
"dam",
|
||||||
|
"caravan",
|
||||||
|
"tunnel",
|
||||||
|
"inn",
|
||||||
|
"stonecircle",
|
||||||
|
"blessedstonecircle",
|
||||||
|
"illusion",
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
NeueBurg(region * r)
|
NeueBurg(region * r)
|
||||||
{
|
{
|
||||||
|
@ -573,7 +594,7 @@ NeueBurg(region * r)
|
||||||
y = 2;
|
y = 2;
|
||||||
wmove(win, y, 4);
|
wmove(win, y, 4);
|
||||||
for (i = 0; i < MAXBUILDINGTYPES; i++) {
|
for (i = 0; i < MAXBUILDINGTYPES; i++) {
|
||||||
sprintf(buf, "%d=%s; ", i, oldbuildings[i]->_name);
|
sprintf(buf, "%d=%s; ", i, oldbuildings[i]);
|
||||||
q += strlen(buf);
|
q += strlen(buf);
|
||||||
if (q > SX - 20) {
|
if (q > SX - 20) {
|
||||||
q = strlen(buf);
|
q = strlen(buf);
|
||||||
|
@ -597,10 +618,10 @@ NeueBurg(region * r)
|
||||||
waddch(win, '|');
|
waddch(win, '|');
|
||||||
}
|
}
|
||||||
wmove(win, 1, 2);
|
wmove(win, 1, 2);
|
||||||
wAddstr((char*)oldbuildings[q]->_name);
|
wAddstr((char*)oldbuildings[q]);
|
||||||
wrefresh(win);
|
wrefresh(win);
|
||||||
|
|
||||||
b = new_building(oldbuildings[q], r, NULL);
|
b = new_building(bt_find(oldbuildings[q]), r, NULL);
|
||||||
|
|
||||||
b->size = map_input(win, 2, 2, "Größe", 1, 999, 1);
|
b->size = map_input(win, 2, 2, "Größe", 1, 999, 1);
|
||||||
|
|
||||||
|
|
|
@ -962,7 +962,7 @@ showunits(region * r)
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
for (b = r->buildings; b; b = b->next) {
|
for (b = r->buildings; b; b = b->next) {
|
||||||
if (b->type == &bt_castle) {
|
if (b->type == bt_find("castle")) {
|
||||||
sprintf(lbuf, "\002%s, Größe %d, %s", buildingname(b), b->size, buildingtype(b, b->size /*, NULL */));
|
sprintf(lbuf, "\002%s, Größe %d, %s", buildingname(b), b->size, buildingtype(b, b->size /*, NULL */));
|
||||||
} else {
|
} else {
|
||||||
sprintf(lbuf, "\002%s, Größe %d, %s", buildingname(b),
|
sprintf(lbuf, "\002%s, Größe %d, %s", buildingname(b),
|
||||||
|
|
Loading…
Reference in New Issue