diff --git a/docs/changelog.txt b/docs/changelog.txt index d3b4d72f1..fdc7c13e7 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -33,6 +33,9 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: # Future +## Fixes +- `embark-assistant`: fixed order of factors when calculating min temperature + # 0.47.04-r4 ## Fixes diff --git a/plugins/embark-assistant/survey.cpp b/plugins/embark-assistant/survey.cpp index ae94a9cbd..e0deb5e58 100644 --- a/plugins/embark-assistant/survey.cpp +++ b/plugins/embark-assistant/survey.cpp @@ -432,17 +432,17 @@ namespace embark_assist { } if (world->world_data->world_height == 17) { - divisor = (57 / steps * lat + 0.4); + divisor = ((lat * 57) / steps + 0.4); } else if (world->world_data->world_height == 33) { - divisor = (61 / steps * lat + 0.1); + divisor = ((lat * 61) / steps + 0.1); } else if (world->world_data->world_height == 65) { - divisor = (63 / steps * lat); + divisor = ((lat * 63) / steps); } else if (world->world_data->world_height == 129 || world->world_data->world_height == 257) { - divisor = (64 / steps * lat); + divisor = ((lat * 64) / steps); } else { return max_temperature; // Not any standard world height. No formula available