summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-09-29 00:31:35 (GMT)
committer jacob1 <jfu614@gmail.com>2013-09-29 00:31:35 (GMT)
commitd1e75c7a50629a7b3026aa078711713fb2a93e11 (patch)
tree71b3896bf8910c7309eabd1aaa28d5cfba336196 /src/simulation/Simulation.cpp
parent8fc39d659c280ea423ae633f6b0c0f7c94d8d81f (diff)
downloadpowder-d1e75c7a50629a7b3026aa078711713fb2a93e11.zip
powder-d1e75c7a50629a7b3026aa078711713fb2a93e11.tar.gz
make PROT lasers easier to make, adjust velocities needed to make things when smashing PROT together, use FIRE_BLEND for PROT graphics
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 3cde255..76c0830 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2218,8 +2218,10 @@ int Simulation::try_move(int i, int x, int y, int nx, int ny)
}
else if ((r&0xFF) == PT_H2 && pv[y/CELL][x/CELL] < 45.0f)
{
- create_part(i, x, y, PT_PROT);
+ part_change_type(i, x, y, PT_PROT);
+ parts[i].ctype = 0;
parts[i].tmp2 = 0x1;
+
create_part(r>>8, x, y, PT_ELEC);
return 1;
}