diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 5b9d999df0..a9cb3f7b50 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -720,11 +720,7 @@ void GameView::NotifyLastToolChanged(GameModel * sender) { if (sender->GetLastTool()) { - if (sender->GetLastTool()->GetResolution() == CELL) - wallBrush = true; - else - wallBrush = false; - + wallBrush = sender->GetLastTool()->GetBlocky(); if (sender->GetLastTool()->GetIdentifier().find("DEFAULT_TOOL_") != sender->GetLastTool()->GetIdentifier().npos) toolBrush = true; else diff --git a/src/gui/game/Tool.cpp b/src/gui/game/Tool.cpp index f65f47a9d8..2e79dab782 100644 --- a/src/gui/game/Tool.cpp +++ b/src/gui/game/Tool.cpp @@ -12,7 +12,7 @@ Tool::Tool(int id, string name, string description, int r, int g, int b, std::st toolName(name), toolDescription(description), strength(1.0f), - resolution(1), + blocky(false), identifier(identifier), colRed(r), colGreen(g), @@ -72,7 +72,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, std::string identifier, VideoBuffer * (*textureGen)(int, int, int)): Tool(id, name, description, r, g, b, identifier, textureGen) { - resolution = CELL; + blocky = true; } WallTool::~WallTool() {} void WallTool::Draw(Simulation * sim, Brush * brush, ui::Point position) { diff --git a/src/gui/game/Tool.h b/src/gui/game/Tool.h index 597b7f02ae..84fb38e85b 100644 --- a/src/gui/game/Tool.h +++ b/src/gui/game/Tool.h @@ -20,7 +20,7 @@ class Tool string toolName; string toolDescription; float strength; - int resolution; + bool blocky; std::string identifier; public: int colRed, colGreen, colBlue; @@ -30,7 +30,7 @@ class Tool string GetName(); string GetDescription(); std::string GetIdentifier(); - int GetResolution() { return resolution; } + int GetBlocky() { return blocky; } void SetStrength(float value) { strength = value; } float GetStrength() { return strength; } VideoBuffer * GetTexture(int width, int height);