Skip to content

Commit e42960d

Browse files
committed
fix broken MP collisions
1 parent fdfc67f commit e42960d

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

src/PathedInterior.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class PathedInterior extends InteriorObject {
173173
return;
174174
var newp = this.getAbsPos().getPosition().add(velocity.multiply(timeDelta));
175175
this.setPosition(newp.x, newp.y, newp.z);
176-
this.collider.setTransform(this.getTransform());
176+
this.setTransform(this.getTransform());
177177

178178
if (this.soundChannel != null) {
179179
var spat = this.soundChannel.getEffect(Spatialization);

src/gui/MainMenuGui.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class MainMenuGui extends GuiImage {
178178
versionText.vertSizing = Bottom;
179179
versionText.position = new Vector(502, 61);
180180
versionText.extent = new Vector(97, 72);
181-
versionText.text.text = "<p align=\"center\">1.5.0</p>";
181+
versionText.text.text = "<p align=\"center\">1.5.1</p>";
182182
versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true);
183183
this.addChild(versionText);
184184

src/rewind/RewindFrame.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class RewindFrame {
2222
var mpStates:Array<{
2323
curState:PIState,
2424
stopped:Bool,
25+
position:Vector
2526
}>;
2627
var gemCount:Int;
2728
var gemStates:Array<Bool>;
@@ -73,6 +74,7 @@ class RewindFrame {
7374
velocity: s.curState.velocity.clone(),
7475
},
7576
stopped: s.stopped,
77+
position: s.position.clone(),
7678
});
7779
}
7880
c.trapdoorStates = [];

src/rewind/RewindManager.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class RewindManager {
4848
velocity: x.velocity.clone(),
4949
},
5050
stopped: @:privateAccess x.stopped,
51+
position: x.getAbsPos().getPosition().clone(),
5152
}
5253
});
5354
rf.powerupStates = [];
@@ -151,6 +152,8 @@ class RewindManager {
151152
level.pathedInteriors[i].targetTime = rf.mpStates[i].curState.targetTime;
152153
level.pathedInteriors[i].velocity.set(rf.mpStates[i].curState.velocity.x, rf.mpStates[i].curState.velocity.y, rf.mpStates[i].curState.velocity.z);
153154
@:privateAccess level.pathedInteriors[i].stopped = rf.mpStates[i].stopped;
155+
level.pathedInteriors[i].setPosition(rf.mpStates[i].position.x, rf.mpStates[i].position.y, rf.mpStates[i].position.z);
156+
level.pathedInteriors[i].setTransform(level.pathedInteriors[i].getTransform());
154157
}
155158
var pstates = rf.powerupStates.copy();
156159
var lmstates = rf.landMineStates.copy();

0 commit comments

Comments
 (0)