diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-21 00:48:39 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-21 00:48:39 (GMT) |
| commit | 876c861c425ad424ffc5af4bf39b2a3441b50f9a (patch) | |
| tree | 2140759c599a763e9887bd3a0ee119fbeb37ef33 /src/elements/bizr.c | |
| parent | 8c6e7caaff883f9c7df111df65737547bd280c7a (diff) | |
| download | powder-876c861c425ad424ffc5af4bf39b2a3441b50f9a.zip powder-876c861c425ad424ffc5af4bf39b2a3441b50f9a.tar.gz | |
Fix LCRY/ELEC infinite loop, BIZR turns photons into electrons, SING explodes with electrons, electrons react with deut.
Diffstat (limited to 'src/elements/bizr.c')
| -rw-r--r-- | src/elements/bizr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elements/bizr.c b/src/elements/bizr.c index d8a59cf..a49aa20 100644 --- a/src/elements/bizr.c +++ b/src/elements/bizr.c @@ -35,5 +35,10 @@ int update_BIZR(UPDATE_FUNC_ARGS) { } } } + if(((r = photons[y][x])&0xFF)==PT_PHOT || ((r = pmap[y][x])&0xFF)==PT_PHOT) + { + part_change_type(r>>8, x, y, PT_ELEC); + parts[r>>8].ctype = 0; + } return 0; } |
