|
|
@ -761,7 +761,7 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ((gps->mouse_y >= 1) && (gps->mouse_y <= 2))
|
|
|
|
if ((gps->mouse_y >= 1) && (gps->mouse_y <= 2))
|
|
|
|
click_header = i;
|
|
|
|
click_header = i;
|
|
|
|
if ((gps->mouse_y >= 4) && (gps->mouse_y <= 4 + num_rows))
|
|
|
|
if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows))
|
|
|
|
click_body = i;
|
|
|
|
click_body = i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -772,9 +772,6 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
|
|
|
|
if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows))
|
|
|
|
if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows))
|
|
|
|
click_unit = gps->mouse_y - 4 + first_row;
|
|
|
|
click_unit = gps->mouse_y - 4 + first_row;
|
|
|
|
|
|
|
|
|
|
|
|
if (click_unit == -1)
|
|
|
|
|
|
|
|
click_body = DISP_COLUMN_MAX;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (click_header)
|
|
|
|
switch (click_header)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case DISP_COLUMN_HAPPINESS:
|
|
|
|
case DISP_COLUMN_HAPPINESS:
|
|
|
|