Skip to content

Commit

Permalink
fix broken MP collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomityGuy committed Jun 4, 2023
1 parent fdfc67f commit e42960d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PathedInterior.hx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class PathedInterior extends InteriorObject {
return;
var newp = this.getAbsPos().getPosition().add(velocity.multiply(timeDelta));
this.setPosition(newp.x, newp.y, newp.z);
this.collider.setTransform(this.getTransform());
this.setTransform(this.getTransform());

if (this.soundChannel != null) {
var spat = this.soundChannel.getEffect(Spatialization);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/MainMenuGui.hx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class MainMenuGui extends GuiImage {
versionText.vertSizing = Bottom;
versionText.position = new Vector(502, 61);
versionText.extent = new Vector(97, 72);
versionText.text.text = "<p align=\"center\">1.5.0</p>";
versionText.text.text = "<p align=\"center\">1.5.1</p>";
versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true);
this.addChild(versionText);

Expand Down
2 changes: 2 additions & 0 deletions src/rewind/RewindFrame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class RewindFrame {
var mpStates:Array<{
curState:PIState,
stopped:Bool,
position:Vector
}>;
var gemCount:Int;
var gemStates:Array<Bool>;
Expand Down Expand Up @@ -73,6 +74,7 @@ class RewindFrame {
velocity: s.curState.velocity.clone(),
},
stopped: s.stopped,
position: s.position.clone(),
});
}
c.trapdoorStates = [];
Expand Down
3 changes: 3 additions & 0 deletions src/rewind/RewindManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class RewindManager {
velocity: x.velocity.clone(),
},
stopped: @:privateAccess x.stopped,
position: x.getAbsPos().getPosition().clone(),
}
});
rf.powerupStates = [];
Expand Down Expand Up @@ -151,6 +152,8 @@ class RewindManager {
level.pathedInteriors[i].targetTime = rf.mpStates[i].curState.targetTime;
level.pathedInteriors[i].velocity.set(rf.mpStates[i].curState.velocity.x, rf.mpStates[i].curState.velocity.y, rf.mpStates[i].curState.velocity.z);
@:privateAccess level.pathedInteriors[i].stopped = rf.mpStates[i].stopped;
level.pathedInteriors[i].setPosition(rf.mpStates[i].position.x, rf.mpStates[i].position.y, rf.mpStates[i].position.z);
level.pathedInteriors[i].setTransform(level.pathedInteriors[i].getTransform());
}
var pstates = rf.powerupStates.copy();
var lmstates = rf.landMineStates.copy();
Expand Down

0 comments on commit e42960d

Please sign in to comment.