TPT: Add PROP_NOAMBHEAT to prevent certain elements from being heated by Ambient heat 8397b6e51a
This commit is contained in:
parent
318499350d
commit
50a587813e
@ -35,6 +35,7 @@
|
||||
#define PROP_LIFE_KILL 0x08000 //2^15 Kill when life value is <= zero
|
||||
#define PROP_LIFE_KILL_DEC 0x10000 //2^16 Kill when life value is decremented to <= zero
|
||||
#define PROP_SPARKSETTLE 0x20000 //2^17 Allow Sparks/Embers to settle
|
||||
#define PROP_NOAMBHEAT 0x40000 //2^18 Don't transfer or receive heat from ambient heat.
|
||||
|
||||
#define FLAG_STAGNANT 1
|
||||
#define FLAG_SKIPMOVE 0x2 // skip movement for one frame, only implemented for PHOT
|
||||
|
@ -3134,7 +3134,7 @@ void Simulation::update_particles_i(int start, int inc)
|
||||
{
|
||||
float c_Cm = 0.0f;
|
||||
#endif
|
||||
if (aheat_enable)
|
||||
if (aheat_enable && !(elements[t].Properties&PROP_NOAMBHEAT))
|
||||
{
|
||||
#ifdef REALISTIC
|
||||
c_heat = parts[i].temp*96.645/elements[t].HeatConduct*gel_scale*fabs(elements[t].Weight) + hv[y/CELL][x/CELL]*100*(pv[y/CELL][x/CELL]+273.15f)/256;
|
||||
|
@ -31,7 +31,7 @@ Element_FILT::Element_FILT()
|
||||
Description = "Filter for photons, changes the color.";
|
||||
|
||||
State = ST_SOLID;
|
||||
Properties = TYPE_SOLID;
|
||||
Properties = TYPE_SOLID | PROP_NOAMBHEAT;
|
||||
|
||||
LowPressure = IPL;
|
||||
LowPressureTransition = NT;
|
||||
|
Reference in New Issue
Block a user