Skip to content

Commit

Permalink
Fixed errors about out of scope particle updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Praccen committed May 1, 2023
1 parent 735a677 commit afd7e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/src/Game/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default class Player {
}

if (this.prepThrow) {
for (var i = 0; i < 10; ++i) {
for (var i = 0; i < 9; ++i) {
let idt = i * 0.1;
let vel = new Vec3([
this.throwPos.x + new Vec3(this.throwVel).x * idt,
Expand All @@ -279,7 +279,7 @@ export default class Player {
}
this.throwRelease = true;
} else {
for (var i = 0; i < 10; ++i) {
for (var i = 0; i < 9; ++i) {
this.particleSpawner.setParticleData(
i,
new Vec3([-10, -10, -10]),
Expand Down

0 comments on commit afd7e1a

Please sign in to comment.