Fix selection behavior of mousequery on lowest z-level

develop
lethosor 2014-09-23 18:57:31 -04:00
parent b0b6a82c92
commit beb5216640
1 changed files with 10 additions and 2 deletions

@ -497,8 +497,16 @@ struct mousequery_hook : public df::viewscreen_dwarfmodest
return;
Gui::setCursorCoords(mpos.x, mpos.y, mpos.z);
sendKey(interface_key::CURSOR_DOWN_Z);
sendKey(interface_key::CURSOR_UP_Z);
if (mpos.z == 0)
{
sendKey(interface_key::CURSOR_UP_Z);
sendKey(interface_key::CURSOR_DOWN_Z);
}
else
{
sendKey(interface_key::CURSOR_DOWN_Z);
sendKey(interface_key::CURSOR_UP_Z);
}
}
bool inBuildPlacement()