Bugfix Antimagie/create_curse

This commit is contained in:
Enno Rehling 2002-10-20 08:54:37 +00:00
parent 29299ba260
commit 0997aca643
3 changed files with 3 additions and 3 deletions

View File

@ -1292,7 +1292,7 @@ randomevents(void)
/* Vulkane qualmen, brechen aus ... */ /* Vulkane qualmen, brechen aus ... */
for (r = regions; r; r = r->next) { for (r = regions; r; r = r->next) {
if (rterrain(r)==T_VOLCANO_SMOKING && a_find(&r->attribs, &at_reduceproduction)) { if (rterrain(r)==T_VOLCANO_SMOKING && a_find(r->attribs, &at_reduceproduction)) {
ADDMSG(&r->msgs, msg_message("volcanostopsmoke", "region", r)); ADDMSG(&r->msgs, msg_message("volcanostopsmoke", "region", r));
rsetterrain(r, T_VOLCANO); rsetterrain(r, T_VOLCANO);
} else switch(rterrain(r)) { } else switch(rterrain(r)) {

View File

@ -505,7 +505,7 @@ create_curse(unit *magician, attrib **ap, const curse_type *ct, int vigour,
curse *c; curse *c;
/* die Kraft eines Spruchs darf nicht 0 sein*/ /* die Kraft eines Spruchs darf nicht 0 sein*/
assert(vigour >= 0); assert(vigour > 0);
c = get_curse(*ap, ct); c = get_curse(*ap, ct);

View File

@ -841,7 +841,7 @@ use_antimagiccrystal(region * r, unit * mage, int amount, strlist * cmdstrings)
if(*ap) ap = &(*ap)->next; if(*ap) ap = &(*ap)->next;
} }
if(force) { if (force>0) {
create_curse(mage, &r->attribs, ct_find("antimagiczone"), force, duration, effect, 0); create_curse(mage, &r->attribs, ct_find("antimagiczone"), force, duration, effect, 0);
} }