Output a message, give feedback about keys used.

Remove unused variable.
This commit is contained in:
Enno Rehling 2014-07-22 11:27:43 +02:00
parent 018d4ca38e
commit af73c6dcdf
1 changed files with 6 additions and 2 deletions

View File

@ -458,7 +458,9 @@ border_type bt_questportal = {
static void use_key1(connection *b, void *data) { static void use_key1(connection *b, void *data) {
unit * u = (unit *)data; unit * u = (unit *)data;
if (b->type == &bt_questportal) { if (b->type == &bt_questportal) {
int lock = b->data.i; const struct item_type *itype = it_find("questkey1");
ADDMSG(&u->faction->msgs,
msg_message("use_item", "unit item", u, itype->rtype));
b->data.i &= 0xFE; b->data.i &= 0xFE;
} }
} }
@ -466,7 +468,9 @@ static void use_key1(connection *b, void *data) {
static void use_key2(connection *b, void *data) { static void use_key2(connection *b, void *data) {
unit * u = (unit *)data; unit * u = (unit *)data;
if (b->type == &bt_questportal) { if (b->type == &bt_questportal) {
int lock = b->data.i; const struct item_type *itype = it_find("questkey2");
ADDMSG(&u->faction->msgs,
msg_message("use_item", "unit item", u, itype->rtype));
b->data.i &= 0xFD; b->data.i &= 0xFD;
} }
} }