1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

dialog:: addBoolItem_action now accepts int argument

This commit is contained in:
Zeno Rogue 2022-10-21 10:59:57 +02:00
parent 5ca19a0d9b
commit 42a1615d0d

View File

@ -1607,12 +1607,12 @@ EX namespace dialog {
dialog::display();
}
EX void addBoolItem_action(const string& s, bool& b, char c) {
EX void addBoolItem_action(const string& s, bool& b, int c) {
dialog::addBoolItem(s, b, c);
dialog::add_action([&b] { b = !b; });
}
EX void addBoolItem_action_neg(const string& s, bool& b, char c) {
EX void addBoolItem_action_neg(const string& s, bool& b, int c) {
dialog::addBoolItem(s, !b, c);
dialog::add_action([&b] { b = !b; });
}