Decrease absorption chance for SPNG, to make release of water from saturated SPNG look a bit less strange
This commit is contained in:
parent
9a0ca32372
commit
caf262ed60
@ -53,7 +53,7 @@ int Element_SPNG::update(UPDATE_FUNC_ARGS)
|
||||
int limit = 50;
|
||||
if (parts[i].life<limit && sim->pv[y/CELL][x/CELL]<=3&&sim->pv[y/CELL][x/CELL]>=-3&&parts[i].temp<=374.0f)
|
||||
{
|
||||
int absorbChanceDenom = parts[i].life*1000/limit + 500;
|
||||
int absorbChanceDenom = parts[i].life*10000/limit + 500;
|
||||
for (rx=-1; rx<2; rx++)
|
||||
for (ry=-1; ry<2; ry++)
|
||||
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
||||
@ -195,4 +195,4 @@ int Element_SPNG::graphics(GRAPHICS_FUNC_ARGS)
|
||||
}
|
||||
|
||||
|
||||
Element_SPNG::~Element_SPNG() {}
|
||||
Element_SPNG::~Element_SPNG() {}
|
||||
|
Reference in New Issue
Block a user