mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
Tungsten breaks under pressure changes
This commit is contained in:
@@ -96,6 +96,12 @@ int Element_TUGN::update(UPDATE_FUNC_ARGS)
|
||||
parts[i].vy += (rand()%100)-50;
|
||||
return 1;
|
||||
}
|
||||
parts[i].pavg[0] = parts[i].pavg[1];
|
||||
parts[i].pavg[1] = sim->pv[y/CELL][x/CELL];
|
||||
if (parts[i].pavg[1]-parts[i].pavg[0] > 0.50f || parts[i].pavg[1]-parts[i].pavg[0] < -0.50f)
|
||||
{
|
||||
sim->part_change_type(i,x,y,PT_BRMT);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user