diff --git a/src/elements/elec.c b/src/elements/elec.c index 2746f495b..3d8471d06 100644 --- a/src/elements/elec.c +++ b/src/elements/elec.c @@ -62,13 +62,13 @@ int update_ELEC(UPDATE_FUNC_ARGS) { } if ((r&0xFF)==PT_WATR || (r&0xFF)==PT_DSTW || (r&0xFF)==PT_SLTW || (r&0xFF)==PT_CBNW) { - if(rand()%2) + if(rand()>8, x+rx, y+ry, PT_H2); + create_part(r>>8, x+rx, y+ry, PT_O2); } else { - create_part(r>>8, x+rx, y+ry, PT_O2); + create_part(r>>8, x+rx, y+ry, PT_H2); } kill_part(i); return 1;