Fix LIFE tool sampling

This commit is contained in:
jacob1 2016-07-23 15:07:49 -04:00
parent 0c95c33da0
commit 21e0c4079c

View File

@ -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);
}
}