forked from github/server
remove handle_events for unused events.
This commit is contained in:
parent
80e6ed0863
commit
1885831204
|
@ -244,7 +244,6 @@ struct order *ord)
|
||||||
warden_add_give(src, dest, itype, delta);
|
warden_add_give(src, dest, itype, delta);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
handle_event(dest->attribs, "receive", src);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* return horses to the region */
|
/* return horses to the region */
|
||||||
|
@ -257,7 +256,6 @@ struct order *ord)
|
||||||
give_money(src, itype, n);
|
give_money(src, itype, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handle_event(src->attribs, "give", dest);
|
|
||||||
}
|
}
|
||||||
add_give(src, dest, n, delta, item2resource(itype), ord, error);
|
add_give(src, dest, n, delta, item2resource(itype), ord, error);
|
||||||
if (error)
|
if (error)
|
||||||
|
|
|
@ -799,10 +799,6 @@ void plan_monsters(faction * f)
|
||||||
if (long_order == NULL) {
|
if (long_order == NULL) {
|
||||||
/* Ab hier noch nicht generalisierte Spezialbehandlungen. */
|
/* Ab hier noch nicht generalisierte Spezialbehandlungen. */
|
||||||
|
|
||||||
if (!u->orders) {
|
|
||||||
handle_event(u->attribs, "ai_move", u);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fval(rc, RCF_DRAGON)) {
|
if (fval(rc, RCF_DRAGON)) {
|
||||||
long_order = plan_dragon(u);
|
long_order = plan_dragon(u);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue