summaryrefslogtreecommitdiff
path: root/src/game/Tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Tool.h')
-rw-r--r--src/game/Tool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Tool.h b/src/game/Tool.h
index 1cf8ce4..440ee62 100644
--- a/src/game/Tool.h
+++ b/src/game/Tool.h
@@ -48,7 +48,9 @@ public:
virtual void DrawLine(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) {
sim->create_line(position1.X, position1.Y, position2.X, position2.Y, 1, 1, toolID, 0, brush);
}
- virtual void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) {}
+ virtual void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) {
+ sim->create_box(position1.X, position1.Y, position2.X, position2.Y, toolID, 0);
+ }
};
#endif /* TOOL_H_ */