Try to fix song-bug (don't work yet)
This commit is contained in:
1 parent
d41fd50597
commit
dbb5157420
3 files changed
+15
-3
No files matched your search
@@ -247,7 +247,8 @@ namespace Vocaluxe.GameModes
|
|||||||
{
|
{
|
||||||
if (_CurrentSong >= 0 && _CurrentSong < _SongQueque.Count)
|
if (_CurrentSong >= 0 && _CurrentSong < _SongQueque.Count)
|
||||||
{
|
{
|
||||||
CSong song = CSongs.GetSong(_SongQueque[_CurrentSong].SongID);
|
CSong song = (CSong)CSongs.GetSong(_SongQueque[_CurrentSong].SongID).Clone();
|
||||||
|
song.Notes = (CNotes)CSongs.GetSong(_SongQueque[_CurrentSong].SongID).Notes.Clone();
|
||||||
|
|
||||||
switch (GetCurrentGameMode())
|
switch (GetCurrentGameMode())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Vocaluxe.Base;
|
|||||||
|
|
||||||
namespace Vocaluxe.Lib.Song
|
namespace Vocaluxe.Lib.Song
|
||||||
{
|
{
|
||||||
class CNotes
|
class CNotes : ICloneable
|
||||||
{
|
{
|
||||||
private List<CLines> _Lines = new List<CLines>();
|
private List<CLines> _Lines = new List<CLines>();
|
||||||
|
|
||||||
@@ -79,6 +79,11 @@ namespace Vocaluxe.Lib.Song
|
|||||||
lines.SetMedley(StartBeat, EndBeat);
|
lines.SetMedley(StartBeat, EndBeat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object Clone()
|
||||||
|
{
|
||||||
|
return base.MemberwiseClone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ENoteType
|
public enum ENoteType
|
||||||
@@ -549,6 +554,7 @@ namespace Vocaluxe.Lib.Song
|
|||||||
updateMinMaxBeat(note);
|
updateMinMaxBeat(note);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Methods
|
#endregion Methods
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Vocaluxe.Lib.Song
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CSong
|
class CSong : ICloneable
|
||||||
{
|
{
|
||||||
private bool _CoverLoaded = false;
|
private bool _CoverLoaded = false;
|
||||||
private bool _NotesLoaded = false;
|
private bool _NotesLoaded = false;
|
||||||
@@ -980,5 +980,10 @@ namespace Vocaluxe.Lib.Song
|
|||||||
ShortEnd = stop;
|
ShortEnd = stop;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object Clone()
|
||||||
|
{
|
||||||
|
return base.MemberwiseClone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user