Remove pointless s_pow and s_sqrt functions and use hypot instead of sqrt for distance calculations

This commit is contained in:
2015-06-21 18:04:31 -04:00
parent b85d177164
commit b7faf52f5e
8 changed files with 16 additions and 26 deletions

View File

@@ -349,7 +349,7 @@ void cThreeChoice::init_strings(std::vector<std::string>& strings, unsigned shor
for(unsigned int i = 0; i < strings.size(); i++)
total_len += string_length(strings[i], style);
total_len = total_len * 12;
str_width = s_sqrt(total_len) + 20;
str_width = sqrt(total_len) + 20;
//print_nums(0,total_len,str_width);
if(str_width < 340)
str_width = 340;