Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r8258ea5 r3b9ca71  
    16041604  if (v == NULL) {
    16051605    if (!silent) owl_function_error("Unknown variable '%s'", var);
    1606   } else if (requirebool && owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {
     1606  } else if (requirebool && !v->takes_on_off) {
    16071607    if (!silent) owl_function_error("Variable '%s' is not a boolean", var);
    16081608  } else {
     
    16331633  if (v == NULL) {
    16341634    if (!silent) owl_function_error("Unknown variable '%s'", var);
    1635   } else if (owl_variable_get_type(v) != OWL_VARIABLE_BOOL) {
     1635  } else if (!v->takes_on_off) {
    16361636    if (!silent) owl_function_error("Variable '%s' is not a boolean", var);
    16371637  } else {
Note: See TracChangeset for help on using the changeset viewer.