From af73c6dcdf78a969a3c854af49e63faab95171d3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 22 Jul 2014 11:27:43 +0200 Subject: [PATCH] Output a message, give feedback about keys used. Remove unused variable. --- src/modules/museum.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/museum.c b/src/modules/museum.c index fad88d890..0c288bd85 100644 --- a/src/modules/museum.c +++ b/src/modules/museum.c @@ -458,7 +458,9 @@ border_type bt_questportal = { static void use_key1(connection *b, void *data) { unit * u = (unit *)data; 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; } } @@ -466,7 +468,9 @@ static void use_key1(connection *b, void *data) { static void use_key2(connection *b, void *data) { unit * u = (unit *)data; 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; } }