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,9 +497,17 @@ struct mousequery_hook : public df::viewscreen_dwarfmodest
return; return;
Gui::setCursorCoords(mpos.x, mpos.y, mpos.z); Gui::setCursorCoords(mpos.x, mpos.y, mpos.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_DOWN_Z);
sendKey(interface_key::CURSOR_UP_Z); sendKey(interface_key::CURSOR_UP_Z);
} }
}
bool inBuildPlacement() bool inBuildPlacement()
{ {