CO2 should stop COAL from burning

  • 12Me21
    10th Oct 2015 Member 1 Permalink

    Currently, CO2 is not very effective at stopping coal fires, because the coal will keep burning after the CO2 is removed.

     

    I think this code should work: (in the code for CO2, right after line 73)

     

    if ((r&0xFF)==PT_COAL){
        parts[r>>8].life=110;
        if(!(rand()%30)){
            sim->kill_part(i);
            return 1;
        }
    }

     

    or maybe

     

    if ((r&0xFF)==PT_COAL && (rand()%20)){
        parts[r>>8].life=110;
        if(!(rand()%30)){
            sim->kill_part(i);
            return 1;
        }
    }

  • jBot-42
    11th Oct 2015 Banned 0 Permalink
    This post is hidden because the user is banned
    Edited once by jBot-42. Last: 11th Oct 2015
  • 12Me21
    12th Oct 2015 Member 0 Permalink

    @jBot-42 (View Post)

     first sentence: yeah, but CO2 should work better than that.

     second sentence: yeah...

  • jBot-42
    12th Oct 2015 Banned 0 Permalink
    This post is hidden because the user is banned
    Edited once by jBot-42. Last: 12th Oct 2015
  • 12Me21
    12th Oct 2015 Member 0 Permalink

    The problem is that any coal that was exposed to fire (tmp2 < 110) will still be destroyed.

     

    I should probably delete some of my unpublished saves...

  • jBot-42
    12th Oct 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • Mrprocom
    12th Oct 2015 Moderator 0 Permalink
    @jBot-42 (View Post)
    There is a big difference between reputation and average score. Reputation is gained from other users up-voting your forum posts and average score is straightforward I guess.
  • jBot-42
    12th Oct 2015 Banned 0 Permalink
    This post is hidden because the user is banned