an error and a question

  • tommig
    1st Apr 2011 Member 0 Permalink
    thanks, done

    wait, no, hydrogen peroxide wont decay into O2 and water
    here's my code:
    #include

    int update_H2O2(UPDATE_FUNC_ARGS) {
    if(1>rand()%200)
    part_change_type(i, x, y, rand()%2 ? PT_WATR : PT_O2);
    return 0;
    }
  • jacksonmj
    1st Apr 2011 Developer 0 Permalink
    Have you remembered to change NULL to &update_H2O2 at the end of the line in powder.h?