Skip to content

Commit

Permalink
make deprecation warnings say asar 1.90 instead of 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 28, 2024
1 parent 68ef1e1 commit 9f082a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asar/assembleblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,8 +2641,8 @@ void assembleblock(const char * block, bool isspecialline)
else if (!stricmp(word[2], "off")) val=false;
else asar_throw_error(0, error_type_block, error_id_invalid_math);
if(0);
else if (!stricmp(word[1], "pri")){ math_pri=val; asar_throw_warning(2, warning_id_feature_deprecated, "math pri", "Rewrite your math statements using parentheses where needed and put \"asar 1.9\" in your patch to enable the future behavior of always enforcing math prioritization rules"); }
else if (!stricmp(word[1], "round")){ math_round=val; asar_throw_warning(2, warning_id_feature_deprecated, "math round", "Put \"asar 1.9\" in your patch to enable the future behavior of never rounding intermediate results. Call the round(), floor() or ceil() functions in places where intermediate rounding is required"); }
else if (!stricmp(word[1], "pri")){ math_pri=val; asar_throw_warning(2, warning_id_feature_deprecated, "math pri", "Rewrite your math statements using parentheses where needed and put \"asar 1.90\" in your patch to enable the future behavior of always enforcing math prioritization rules"); }
else if (!stricmp(word[1], "round")){ math_round=val; asar_throw_warning(2, warning_id_feature_deprecated, "math round", "Put \"asar 1.90\" in your patch to enable the future behavior of never rounding intermediate results. Call the round(), floor() or ceil() functions in places where intermediate rounding is required"); }
else asar_throw_error(0, error_type_block, error_id_invalid_math);
}
else if (is2("warn"))
Expand Down

0 comments on commit 9f082a2

Please sign in to comment.