Skip to content

Commit 0d22feb

Browse files
committed
fix build
1 parent 0b11ca3 commit 0d22feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SerialPrograms/Source/PokemonSV/Inference/Overworld/PokemonSV_OliveDetector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ uint16_t OliveDetector::walk_up_to_olive(
341341
double olive_y = olive.second;
342342

343343
uint16_t scale_factor = 2000;
344-
uint16_t push_duration = std::max(uint16_t(std::pow((0.57 - olive_y), 2) * scale_factor), uint16_t(20));
344+
uint16_t push_duration = std::max(uint16_t((0.57 - olive_y)*(0.57 - olive_y) * scale_factor), uint16_t(20));
345345
console.log("walk_up_to_olive(): olive_y: " + std::to_string(olive_y));
346346
if (olive_y > 0.515){
347347
return ticks_walked;

0 commit comments

Comments
 (0)