mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 14:41:29 +02:00
Fix LIFE tool sampling
This commit is contained in:
@@ -54,7 +54,7 @@ void SampleTool::Draw(Simulation * sim, Brush * brush, ui::Point position)
|
||||
for(std::vector<Tool*>::iterator iter = elementTools.begin(), end = elementTools.end(); iter != end; ++iter)
|
||||
{
|
||||
Tool * elementTool = *iter;
|
||||
if(elementTool && elementTool->GetToolID() == particleCtype)
|
||||
if(elementTool && elementTool->GetToolID()/256 == particleCtype)
|
||||
gameModel->SetActiveTool(0, elementTool);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user