Skip to content

Commit

Permalink
Merge remote-tracking branch 'PatrikLundell/embark-assistant' into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
lethosor committed Dec 28, 2020
2 parents 4460584 + 58a4dbe commit a4ac11c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions plugins/embark-assistant/survey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4ac11c

Please sign in to comment.