What affects air heat?

  • Videogamer555
    22nd Jan 2012 Member 0 Permalink
    if (rt&&ptypes[rt].hconduct&&(rt!=PT_HSWC||parts[r>>8].life==10)
    &&(t!=PT_FILT||(rt!=PT_BRAY&&rt!=PT_BIZR&&rt!=PT_BIZRG))
    &&(rt!=PT_FILT||(t!=PT_BRAY&&t!=PT_PHOT&&t!=PT_BIZR&&t!=PT_BIZRG)))
    in powder.c controls how substances transfer temperature to each other.
    How do I set it so that something will or will not transfer temperature with the air when "ambient heat" is turned on?
  • me4502
    22nd Jan 2012 Member 0 Permalink
    @Videogamer555 (View Post)
    probably in update_aheat in air.c
  • jacksonmj
    22nd Jan 2012 Developer 0 Permalink
    Look a few lines above that, and you'll find this, which transfers heat between particles and air: if (aheat_enable)
    {
    c_heat = (hv[y/CELL][x/CELL]-parts[i].temp)*0.04;
    c_heat = restrict_flt(c_heat, -MAX_TEMP+MIN_TEMP, MAX_TEMP-MIN_TEMP);
    parts[i].temp += c_heat;
    hv[y/CELL][x/CELL] -= c_heat;
    }

  • Catelite
    22nd Jan 2012 Former Staff 0 Permalink
    I still can't believe the code for air heat was so short xD I was always expecting it to take like a half page of code.