diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-12 23:58:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-12 23:58:33 (GMT) |
| commit | c63de0ff6d55d05e0717f4d2d38a2b3ac860b785 (patch) | |
| tree | 850160472a335584106a3f13234ece1bf05e3bcc /src/simulation/elements/EXOT.cpp | |
| parent | 427670682ffaadc81aa6a2363d5b6428d14e1ad7 (diff) | |
| download | powder-c63de0ff6d55d05e0717f4d2d38a2b3ac860b785.zip powder-c63de0ff6d55d05e0717f4d2d38a2b3ac860b785.tar.gz | |
TPT: Return 0 after particle type change
Diffstat (limited to 'src/simulation/elements/EXOT.cpp')
| -rw-r--r-- | src/simulation/elements/EXOT.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simulation/elements/EXOT.cpp b/src/simulation/elements/EXOT.cpp index 79cf9ec..64691fc 100644 --- a/src/simulation/elements/EXOT.cpp +++ b/src/simulation/elements/EXOT.cpp @@ -67,7 +67,10 @@ int Element_EXOT::update(UPDATE_FUNC_ARGS) { if (parts[i].tmp>245) if (1>rand()%500) if ((r&0xFF)!=PT_EXOT && (r&0xFF)!=PT_BREC && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_NBHL && (r&0xFF)!=PT_WARP) + { sim->create_part(i, x, y, parts[r>>8].type); + return 0; + } } parts[i].tmp--; parts[i].tmp2--; @@ -80,6 +83,7 @@ int Element_EXOT::update(UPDATE_FUNC_ARGS) { parts[i].tmp2 = 6000; sim->part_change_type(i, x, y, PT_WARP); parts[i].temp = 10000; + return 0; } else sim->pv[y/CELL][x/CELL] += (parts[i].tmp2*CFDS)/160000; @@ -87,6 +91,7 @@ int Element_EXOT::update(UPDATE_FUNC_ARGS) { { sim->part_change_type(i, x, y, PT_WARP); parts[i].tmp2 = 6000; + return 0; } if (parts[i].tmp2>100) { |
