diff options
| author | cracker64 <cracker642@gmail.com> | 2013-03-01 05:41:53 (GMT) |
|---|---|---|
| committer | cracker64 <cracker642@gmail.com> | 2013-03-01 05:41:53 (GMT) |
| commit | 0d70547cf059b5bd0a7a4a0acd9251fb94c6115e (patch) | |
| tree | 99a0b212eeecee83662d963da052b439375acbf3 /src/simulation/elements/DMG.cpp | |
| parent | 5873d6958641af21b92fcb039d26c336331f19e7 (diff) | |
| download | powder-0d70547cf059b5bd0a7a4a0acd9251fb94c6115e.zip powder-0d70547cf059b5bd0a7a4a0acd9251fb94c6115e.tar.gz | |
More fixes to fix fixes and new fixes to fix stuff.
Diffstat (limited to 'src/simulation/elements/DMG.cpp')
| -rw-r--r-- | src/simulation/elements/DMG.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/simulation/elements/DMG.cpp b/src/simulation/elements/DMG.cpp index b89db1c..75ad494 100644 --- a/src/simulation/elements/DMG.cpp +++ b/src/simulation/elements/DMG.cpp @@ -76,15 +76,11 @@ int Element_DMG::update(UPDATE_FUNC_ARGS) angle = atan2((float)nxj, nxi); fx = cos(angle) * 7.0f; fy = sin(angle) * 7.0f; - parts[rr>>8].vx += fx; parts[rr>>8].vy += fy; - sim->vx[(y+nxj)/CELL][(x+nxi)/CELL] += fx; sim->vy[(y+nxj)/CELL][(x+nxi)/CELL] += fy; - sim->pv[(y+nxj)/CELL][(x+nxi)/CELL] += 1.0f; - t = rr&0xFF; if(t && sim->elements[t].HighPressureTransition>-1 && sim->elements[t].HighPressureTransition<PT_NUM) sim->part_change_type(rr>>8, x+nxi, y+nxj, sim->elements[t].HighPressureTransition); |
