H2 burns from spark, lava, plasma; O2 burns from plasma

This commit is contained in:
jacksonmj 2011-04-27 20:26:10 +01:00 committed by Simon Robertshaw
parent a7b5718c6a
commit 9a3836879e
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@ int update_O2(UPDATE_FUNC_ARGS)
{
parts[r>>8].temp+=(rand()/(RAND_MAX/100));
parts[r>>8].tmp |= 2;
}
if ((r&0xFF)==PT_FIRE || (r&0xFF)==PT_PLSM)
{
create_part(i,x,y,PT_FIRE);
parts[i].temp+=(rand()/(RAND_MAX/100));
parts[i].tmp |= 2;

View File

@ -20,6 +20,9 @@ int update_H2(UPDATE_FUNC_ARGS)
{
parts[r>>8].temp+=(rand()/(RAND_MAX/100));
parts[r>>8].tmp |= 1;
}
if ((r&0xFF)==PT_FIRE || (r&0xFF)==PT_PLSM || (r&0xFF)==PT_SPRK || (r&0xFF)==PT_LAVA)
{
create_part(i,x,y,PT_FIRE);
parts[i].temp+=(rand()/(RAND_MAX/100));
parts[i].tmp |= 1;