summaryrefslogtreecommitdiff
path: root/src/elements/pbcn.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-17 17:07:22 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-17 17:07:22 (GMT)
commit2417ad3b41589f07eecb6e32c913c8858589c13c (patch)
tree77e5afe0749d87eb16e5a281ff670b1f4b981475 /src/elements/pbcn.cpp
parent89788d43c3c45bf0535b200a7703b91e0297208b (diff)
downloadpowder-2417ad3b41589f07eecb6e32c913c8858589c13c.zip
powder-2417ad3b41589f07eecb6e32c913c8858589c13c.tar.gz
TPT: Prevent gaps in beams of photons from powered clone 3702438482
Diffstat (limited to 'src/elements/pbcn.cpp')
-rw-r--r--src/elements/pbcn.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elements/pbcn.cpp b/src/elements/pbcn.cpp
index aa4c336..3b992d4 100644
--- a/src/elements/pbcn.cpp
+++ b/src/elements/pbcn.cpp
@@ -71,6 +71,11 @@ int update_PBCN(UPDATE_FUNC_ARGS) {
{
parts[r].vx = rx * 3;
parts[r].vy = ry * 3;
+ if (r>i)
+ {
+ // Make sure movement doesn't happen until next frame, to avoid gaps in the beams of photons produced
+ parts[r].flags |= FLAG_SKIPMOVE;
+ }
}
}
}