Merge branch 'embarktools-finder' of git://github.com/lethosor/dfhack into develop

develop
Alexander Gavrilov 2014-06-26 17:22:56 +04:00
commit 92c4514286
1 changed files with 5 additions and 0 deletions

@ -191,6 +191,11 @@ void sticky_save (df::viewscreen_choose_start_sitest * screen)
void sticky_apply (df::viewscreen_choose_start_sitest * screen)
{
if (screen->finder.finder_state != -1)
{
// Site finder is active - don't override default local position
return;
}
screen->embark_pos_min.x = sticky_pos[0];
screen->embark_pos_max.x = sticky_pos[1];
screen->embark_pos_min.y = sticky_pos[2];