..
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using COMM;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using static Project.StateMachine;
|
||||
using Project.StateMachine;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
@@ -421,8 +421,8 @@ namespace Project
|
||||
/// </summary>
|
||||
void Update_Music()
|
||||
{
|
||||
|
||||
if (PUB.mplayer != null && PUB.mplayer.HasAudio && PUB.bPlayMusic)
|
||||
if (PUB.mplayer == null) return;
|
||||
if (PUB.mplayer != null && !string.IsNullOrEmpty(PUB.mplayer.SoundLocation) && PUB.bPlayMusic)
|
||||
{
|
||||
if (PUB.AGV.system1.agv_run == false)
|
||||
{
|
||||
@@ -434,7 +434,7 @@ namespace Project
|
||||
|
||||
}
|
||||
}
|
||||
else if (PUB.setting.Enable_Music && PUB.mplayer != null && PUB.mplayer.HasAudio)
|
||||
else if (PUB.setting.Enable_Music && PUB.mplayer != null && !string.IsNullOrEmpty(PUB.mplayer.SoundLocation))
|
||||
{
|
||||
if (PUB.AGV.system1.agv_run == true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user