forked from github/server
Remove unused "message" events (old NPC sh*t).
This commit is contained in:
parent
8d88579570
commit
116ff7247d
1 changed files with 0 additions and 11 deletions
11
src/laws.c
11
src/laws.c
|
@ -2058,17 +2058,6 @@ int mail_cmd(unit * u, struct order *ord)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
attrib *a = a_find(u2->attribs, &at_eventhandler);
|
|
||||||
if (a != NULL) {
|
|
||||||
event_arg args[3];
|
|
||||||
args[0].data.v = (void *)s;
|
|
||||||
args[0].type = "string";
|
|
||||||
args[1].data.v = (void *)u;
|
|
||||||
args[1].type = "unit";
|
|
||||||
args[2].type = NULL;
|
|
||||||
handle_event(a, "message", args);
|
|
||||||
}
|
|
||||||
|
|
||||||
mailunit(r, u, n, ord, s);
|
mailunit(r, u, n, ord, s);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue