resume: use map y dimension and fix off-by-one error

develop
lethosor 2017-06-03 11:24:23 -04:00
parent 92c2e52e45
commit 9f18cb5bdc
1 changed files with 1 additions and 1 deletions

@ -125,7 +125,7 @@ void show_suspended_buildings()
auto dims = Gui::getDwarfmodeViewDims(); auto dims = Gui::getDwarfmodeViewDims();
int left_margin = vx + dims.map_x2; int left_margin = vx + dims.map_x2;
int bottom_margin = vy + dims.y2; int bottom_margin = vy + dims.map_y2 - 1;
for (auto sb = suspended_buildings.begin(); sb != suspended_buildings.end();) for (auto sb = suspended_buildings.begin(); sb != suspended_buildings.end();)
{ {