diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-10 17:59:05 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-10 17:59:05 (GMT) |
| commit | 3499cb3035e64ed91adfbabdfa9b979e9f8e0885 (patch) | |
| tree | 1036f4f2fab5301981457a07a8a39df5021fe727 /src/game/Tool.cpp | |
| parent | cd051924d9ca6d5c39e02111bc311fda9126435e (diff) | |
| download | powder-3499cb3035e64ed91adfbabdfa9b979e9f8e0885.zip powder-3499cb3035e64ed91adfbabdfa9b979e9f8e0885.tar.gz | |
Wall brush, fixes #63
Diffstat (limited to 'src/game/Tool.cpp')
| -rw-r--r-- | src/game/Tool.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Tool.cpp b/src/game/Tool.cpp index a93afaf..ad98712 100644 --- a/src/game/Tool.cpp +++ b/src/game/Tool.cpp @@ -20,7 +20,8 @@ Tool::Tool(int id, string name, string description, int r, int g, int b, VideoBu colGreen(g), colBlue(b), textureGen(textureGen), - strength(1.0f) + strength(1.0f), + resolution(1) { } VideoBuffer * Tool::GetTexture(int width, int height) @@ -72,6 +73,7 @@ void ElementTool::DrawFill(Simulation * sim, Brush * brush, ui::Point position) WallTool::WallTool(int id, string name, string description, int r, int g, int b, VideoBuffer * (*textureGen)(int, int, int)): Tool(id, name, description, r, g, b, textureGen) { + resolution = CELL; } WallTool::~WallTool() {} void WallTool::Draw(Simulation * sim, Brush * brush, ui::Point position){ |
