Skip to content

Commit

Permalink
fixup! Rework the special node button dictionary (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 23, 2025
1 parent 8cd90c4 commit 515ecb1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/scenario/special.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,14 @@ node_function_t::node_function_t() {}

node_function_t::node_function_t(eSpecPicker button)
: button(button)
{}
{
if(button == eSpecPicker::PICTURE) {
pic_type = PIC_NONE;
}
if(button == eSpecPicker::NODE || button == eSpecPicker::MSG_PAIR || button == eSpecPicker::MSG_SINGLE || button == eSpecPicker::MSG_SEQUENCE) {
force_global = false;
}
}

node_function_t::node_function_t(eStrType str)
: button(eSpecPicker::STRING)
Expand Down

0 comments on commit 515ecb1

Please sign in to comment.