diff --git a/LuaSTGNode.Legacy/EditorData/Node/Audio/PlayBGM.cs b/LuaSTGNode.Legacy/EditorData/Node/Audio/PlayBGM.cs index 1762367..9c6ce00 100644 --- a/LuaSTGNode.Legacy/EditorData/Node/Audio/PlayBGM.cs +++ b/LuaSTGNode.Legacy/EditorData/Node/Audio/PlayBGM.cs @@ -71,7 +71,7 @@ public override IEnumerable ToLua(int spacing) { if (!string.IsNullOrEmpty(Macrolize(2))) { - s = sp + "if " + Macrolize(2) + " then ex.stageframe=int(" + Macrolize(1) + "/60) end\n"; + s = sp + "if " + Macrolize(2) + " then ex.stageframe=int(" + Macrolize(1) + "*60) end\n"; } yield return sp + "LoadMusicRecord(" + Macrolize(0) + ")\n" + sp + "_play_music(" + Macrolize(0) + "," + Macrolize(1) + ")\n" + s; @@ -95,7 +95,7 @@ public override string ToString() string s = ""; if (!string.IsNullOrEmpty(NonMacrolize(1))) { - s = ", start from " + NonMacrolize(1) + " frame(s)"; + s = ", start from " + NonMacrolize(1) + " second(s)"; } return "Play background music " + NonMacrolize(0) + s; }