summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/GameModel.cpp2
-rw-r--r--src/game/GameView.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp
index 813781f..64724d6 100644
--- a/src/game/GameModel.cpp
+++ b/src/game/GameModel.cpp
@@ -253,7 +253,7 @@ void GameModel::BuildMenus()
tempTool = new ElementTool(i, sim->elements[i].Name, sim->elements[i].Description, PIXR(sim->elements[i].Colour), PIXG(sim->elements[i].Colour), PIXB(sim->elements[i].Colour), sim->elements[i].Identifier, sim->elements[i].IconGenerator);
}
- if(sim->elements[i].MenuSection < 12 && sim->elements[i].MenuVisible)
+ if(sim->elements[i].MenuSection < SC_TOTAL && sim->elements[i].MenuVisible)
{
menuList[sim->elements[i].MenuSection]->AddTool(tempTool);
}
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index f8d8cd3..dfd4b40 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1847,10 +1847,10 @@ void GameView::OnDraw()
y2 = YRES-1;
ren->fillrect(0, 0, XRES, y1, 0, 0, 0, 100);
- ren->fillrect(0, y2, XRES, YRES-y2, 0, 0, 0, 100);
+ ren->fillrect(0, y2+1, XRES, YRES-y2-1, 0, 0, 0, 100);
- ren->fillrect(0, y1, x1, (y2-y1), 0, 0, 0, 100);
- ren->fillrect(x2, y1, XRES-x2, (y2-y1), 0, 0, 0, 100);
+ ren->fillrect(0, y1, x1, (y2-y1)+1, 0, 0, 0, 100);
+ ren->fillrect(x2+1, y1, XRES-x2-1, (y2-y1)+1, 0, 0, 0, 100);
ren->xor_rect(x1, y1, (x2-x1)+1, (y2-y1)+1);
}