making the mapper compile

This commit is contained in:
Enno Rehling 2002-05-01 20:06:32 +00:00
parent 08821f8cc8
commit cefa3e61bb
3 changed files with 9 additions and 9 deletions

View File

@ -149,17 +149,17 @@ SpecialFunction(region *r)
wrefresh(win);
switch(getch()) {
case '1':
if(!is_cursed_internal(r->attribs, C_CURSED_BY_THE_GODS, 0)) {
create_curse(NULL, &r->attribs, C_CURSED_BY_THE_GODS, 0,
if (get_curse(r->attribs, ct_find("godcursezone"))==NULL) {
curse * c = create_curse(NULL, &r->attribs, ct_find("godcursezone"),
100, 100, 0, 0);
set_curseflag(r->attribs, C_CURSED_BY_THE_GODS, 0, CURSE_ISNEW|CURSE_IMMUN);
curse_setflag(c, CURSE_ISNEW|CURSE_IMMUNE);
modified = 1;
break;
}
case '2':
if(!is_cursed_internal(r->attribs, C_PEACE, 0)) {
create_curse(NULL, &r->attribs, C_PEACE, 0, 100, 2, 0, 0);
set_curseflag(r->attribs, C_PEACE, 0, CURSE_IMMUN);
if(!is_cursed_internal(r->attribs, ct_find("peacezone"))) {
curse * c = create_curse(NULL, &r->attribs, ct_find("peacezone"), 100, 2, 0, 0);
curse_setflag(c, CURSE_IMMUNE);
modified = 1;
}
default:

View File

@ -948,7 +948,7 @@ showunits(region * r)
building *b;
ship *sh;
dbllist *eh = NULL, *unten, *oben, *hlp = NULL, *such = NULL, *tmp;
int line, ch, bottom, bot, f, f2;
int line, ch, bottom, bot, f;
size_t lt;
char *s = NULL, *txt, *suchtext = 0, str[45], lbuf[256];
@ -1511,7 +1511,7 @@ showunits(region * r)
clipregion = r;
break;
case '\023':
clipship = findship(f2);
clipship = findship(f);
shipregion = r;
break;
}

View File

@ -442,7 +442,7 @@ drawmap(boolean maponly) {
(hl == -5 && has_laen(r)) ||
(hl == -6 && fval(r, RF_MALLORN)) ||
(hl == -7 && fval(r, RF_CHAOTIC)) ||
(hl == -8 && is_cursed_internal(r->attribs, C_CURSED_BY_THE_GODS, 0)) ||
(hl == -8 && get_curse(r->attribs, ct_find("godcursezone"))) ||
(hl == -9 && newbie_region(r)) ||
(hl == -10 && dropout_region(r)) ||
(hl >= 0 && factionhere(r, hl)) ||