Query menu for putting ring on left or right hand

This commit is contained in:
Pasi Kallinen
2024-03-23 13:22:29 +02:00
parent 720c62c340
commit e0cb6e2206
4 changed files with 12 additions and 4 deletions

View File

@@ -2155,7 +2155,7 @@ accessory_or_armor_on(struct obj *obj)
Sprintf(qbuf, "Which %s%s, Right or Left?",
humanoid(gy.youmonst.data) ? "ring-" : "",
body_part(FINGER));
answer = yn_function(qbuf, "rl", '\0', TRUE);
answer = yn_function(qbuf, rightleftchars, '\0', TRUE);
switch (answer) {
case '\0':
case '\033':