diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:32:05 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:32:05 (GMT) |
| commit | 2189d298a7ae718b9d483cc3925bcb8fee854281 (patch) | |
| tree | b5922ae28bb578b926c2856f1681f1b08392777f /src/simulation/elements/ICEI.cpp | |
| parent | fad383f3923cc04fb8b2ecd7a72cf5406832cf5d (diff) | |
| download | powder-2189d298a7ae718b9d483cc3925bcb8fee854281.zip powder-2189d298a7ae718b9d483cc3925bcb8fee854281.tar.gz | |
TPT: Move INST flood fill into a separate function 36de2f19f5
Diffstat (limited to 'src/simulation/elements/ICEI.cpp')
| -rw-r--r-- | src/simulation/elements/ICEI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simulation/elements/ICEI.cpp b/src/simulation/elements/ICEI.cpp index 852b646..c1d4e54 100644 --- a/src/simulation/elements/ICEI.cpp +++ b/src/simulation/elements/ICEI.cpp @@ -66,6 +66,8 @@ int Element_ICEI::update(UPDATE_FUNC_ARGS) sim->part_change_type(i,x,y,PT_SLTW); sim->part_change_type(r>>8,x+rx,y+ry,PT_SLTW); } + if (((r&0xFF)==PT_FRZZ) && (parts[i].ctype=PT_FRZW) && 1>(rand()%1000)) + sim->part_change_type(r>>8,x+rx,y+ry,PT_ICEI); } return 0; } |
