From dbfd83878616811df5e45ae63efe4ea8e12e8521 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 27 Dec 2020 11:07:33 +0100 Subject: [PATCH 1/2] corrected temperature calculation factor order --- plugins/embark-assistant/survey.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 From 58a4dbe15dc8feb8fb7d9a22a0144fe9e69f66df Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 27 Dec 2020 11:25:04 +0100 Subject: [PATCH 2/2] corrected temperature calculation factor order --- docs/changelog.txt | 3 +++ 1 file changed, 3 insertions(+) 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