mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
remove unused dependencies, and fix replay saving bug after quick respawn
This commit is contained in:
parent
dd6a0be20d
commit
f22cce9825
5 changed files with 5 additions and 10 deletions
|
|
@ -1,7 +1,6 @@
|
|||
-cp src
|
||||
-lib heaps
|
||||
-lib hlsdl
|
||||
-lib zyheaps
|
||||
-hl marblegame.hl
|
||||
-D windowSize=1280x720
|
||||
-D keep-inline-positions
|
||||
|
|
|
|||
|
|
@ -1103,7 +1103,7 @@ class MarbleWorld extends Scheduler {
|
|||
ProfilerUI.measure("updateTimer");
|
||||
this.updateTimer(dt);
|
||||
|
||||
if (Key.isPressed(Settings.controlsSettings.respawn)) {
|
||||
if (Key.isPressed(Settings.controlsSettings.respawn) && this.finishTime == null) {
|
||||
this.respawnPressedTime = timeState.timeSinceLoad;
|
||||
this.restart();
|
||||
if (!this.isWatching) {
|
||||
|
|
@ -1118,15 +1118,11 @@ class MarbleWorld extends Scheduler {
|
|||
} else {
|
||||
Settings.levelStatistics[mission.path].respawns++;
|
||||
}
|
||||
|
||||
if (this.isRecording) {
|
||||
this.replay.endFrame();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (Key.isDown(Settings.controlsSettings.respawn) && !this.isWatching) {
|
||||
if (Key.isDown(Settings.controlsSettings.respawn) && !this.isWatching && this.finishTime == null) {
|
||||
if (timeState.timeSinceLoad - this.respawnPressedTime > 1.5) {
|
||||
this.restart(true);
|
||||
this.respawnPressedTime = Math.POSITIVE_INFINITY;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,8 @@ class Replay {
|
|||
}
|
||||
|
||||
public function endFrame() {
|
||||
frames.push(currentRecordFrame);
|
||||
if (currentRecordFrame != null)
|
||||
frames.push(currentRecordFrame);
|
||||
currentRecordFrame = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import h2d.Tile;
|
|||
import h2d.Bitmap;
|
||||
import h3d.Engine;
|
||||
import h3d.Vector;
|
||||
import shaders.GuiRender;
|
||||
import gui.GuiText.Justification;
|
||||
import h2d.HtmlText;
|
||||
import h2d.Scene;
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ class MainMenuGui extends GuiImage {
|
|||
versionText.vertSizing = Bottom;
|
||||
versionText.position = new Vector(502, 66);
|
||||
versionText.extent = new Vector(97, 72);
|
||||
versionText.text.text = "<p align=\"center\">1.2.0</p>";
|
||||
versionText.text.text = "<p align=\"center\">1.2.1</p>";
|
||||
this.addChild(versionText);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue