Merge pull request #7878 from RebelliousX/else

Bunch of missing `else` statements and general logic
This commit is contained in:
Rémi Verschelde 2017-02-28 23:03:10 +01:00 committed by GitHub
commit a1cbe8e22b
32 changed files with 41 additions and 39 deletions

View file

@ -329,7 +329,7 @@ PropertyInfo VisualScriptBuiltinFunc::get_input_value_port_info(int p_idx) const
case LOGIC_CLAMP: {
if (p_idx==0)
return PropertyInfo(Variant::REAL,"a");
else if (p_idx==0)
else if (p_idx==0) // is it ok to test p_idx == 0 twice?
return PropertyInfo(Variant::REAL,"min");
else
return PropertyInfo(Variant::REAL,"max");