Improving ARAY

  • meep2000
    18th May 2011 Member 0 Permalink
    change the code in aray.c from

    if (!r) {
    int nr = create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_BRAY);
    if (nr!=-1) {
    if (destroy) {//if it came from PSCN
    parts[nr].tmp = 2;
    parts[nr].life = 2;
    } else
    parts[nr].ctype = colored;
    }
    }

    to

    if (!r) {
    int nr = create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_BRAY);
    if (nr!=-1) {
    parts[nr].temp = parts[i].temp;
    if (destroy) {//if it came from PSCN
    parts[nr].tmp = 2;
    parts[nr].life = 2;
    } else
    parts[nr].ctype = colored;
    }
    }

    the difference being adding the line

    parts[nr].temp = parts[i].temp;
  • roguegeneral--
    18th May 2011 Member 0 Permalink
    have you tried it?
  • Demoman200
    18th May 2011 Member 0 Permalink
    what does it do?
  • Anmol444
    18th May 2011 Member 0 Permalink
    @meep2000 (View Post)
    What does it do?
  • Neospector
    18th May 2011 Member 0 Permalink
    Oh I see, The temperature of BRAY (parts[nr].temp) is equal to the temperature of the corresponding ARAY (parts[i].temp)

    Am I correct?
  • TheTempest
    18th May 2011 Member 0 Permalink
    Please implement. Not sure if this qualifies as necro, but it is a good idea.
  • JH-Darkfire
    18th May 2011 Member 0 Permalink
    So... This would make... Lemme see... BRAY temp to ARAY temp?
    Great idea!!