diff options
Diffstat (limited to 'src/simulation/elements/ELEC.cpp')
| -rw-r--r-- | src/simulation/elements/ELEC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/ELEC.cpp b/src/simulation/elements/ELEC.cpp index e5884c6..ddaeac7 100644 --- a/src/simulation/elements/ELEC.cpp +++ b/src/simulation/elements/ELEC.cpp @@ -95,14 +95,14 @@ int Element_ELEC::update(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()<RAND_MAX/3) { - sim->create_part(r>>8, x+rx, y+ry, PT_H2); + sim->create_part(r>>8, x+rx, y+ry, PT_O2); return 1; } else { - sim->create_part(r>>8, x+rx, y+ry, PT_O2); + sim->create_part(r>>8, x+rx, y+ry, PT_H2); return 1; } } |
