Soap freezing temp is -25C now
This commit is contained in:
parent
ce43a28983
commit
12c471f257
@ -68,6 +68,8 @@ void Element_SOAP::attach(Particle * parts, int i1, int i2)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define FREEZING 248.15f
|
||||||
|
|
||||||
//#TPT-Directive ElementHeader Element_SOAP static int update(UPDATE_FUNC_ARGS)
|
//#TPT-Directive ElementHeader Element_SOAP static int update(UPDATE_FUNC_ARGS)
|
||||||
int Element_SOAP::update(UPDATE_FUNC_ARGS)
|
int Element_SOAP::update(UPDATE_FUNC_ARGS)
|
||||||
|
|
||||||
@ -82,7 +84,7 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS)
|
|||||||
|
|
||||||
if (parts[i].ctype&1)
|
if (parts[i].ctype&1)
|
||||||
{
|
{
|
||||||
if (parts[i].temp>0)
|
if (parts[i].temp>FREEZING)
|
||||||
{
|
{
|
||||||
if (parts[i].life<=0)
|
if (parts[i].life<=0)
|
||||||
{
|
{
|
||||||
@ -135,7 +137,7 @@ int Element_SOAP::update(UPDATE_FUNC_ARGS)
|
|||||||
r = pmap[y+ry][x+rx];
|
r = pmap[y+ry][x+rx];
|
||||||
if (!r && !sim->bmap[(y+ry)/CELL][(x+rx)/CELL])
|
if (!r && !sim->bmap[(y+ry)/CELL][(x+rx)/CELL])
|
||||||
continue;
|
continue;
|
||||||
if (parts[i].temp>0)
|
if (parts[i].temp>FREEZING)
|
||||||
{
|
{
|
||||||
if (sim->bmap[(y+ry)/CELL][(x+rx)/CELL]
|
if (sim->bmap[(y+ry)/CELL][(x+rx)/CELL]
|
||||||
|| (r && sim->elements[r&0xFF].State != ST_GAS
|
|| (r && sim->elements[r&0xFF].State != ST_GAS
|
||||||
|
Reference in New Issue
Block a user