diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-06 16:04:48 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-03-06 16:04:48 +0000 |
commit | 8a8ef7422474040db4cbfddf24a010c3d83b21d1 (patch) | |
tree | 0b546e4ea21f8233ebab4500f2ca7c8cee78818c /Game/Code/Screens | |
parent | 344f79cff25d29df8d7e4a76bc4ac51310745e56 (diff) | |
download | usdx-8a8ef7422474040db4cbfddf24a010c3d83b21d1.tar.gz usdx-8a8ef7422474040db4cbfddf24a010c3d83b21d1.tar.xz usdx-8a8ef7422474040db4cbfddf24a010c3d83b21d1.zip |
fixed song skipping in party modes
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2174 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens')
-rw-r--r-- | Game/Code/Screens/UScreenSong.pas | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas index 52e679b5..377106d4 100644 --- a/Game/Code/Screens/UScreenSong.pas +++ b/Game/Code/Screens/UScreenSong.pas @@ -2667,11 +2667,23 @@ begin if PartyMedley then
begin
if (Length(getVisibleMedleyArr(MinSource))<=0) then
- SetLength(MedleyPlayed, 0);
+ begin
+ if (GetSongsSkipped()>0) then
+ SetLength(SkippedSongs, 0);
+
+ if (Length(getVisibleMedleyArr(MinSource))<=0) then
+ SetLength(MedleyPlayed, 0);
+ end;
end else
begin
if (CatSongs.VisibleSongs-Length(PartyPlayed)<=0) then
- SetLength(PartyPlayed, 0);
+ begin
+ if (GetSongsSkipped()>0) then
+ SetLength(SkippedSongs, 0);
+
+ if (CatSongs.VisibleSongs-Length(PartyPlayed)<=0) then
+ SetLength(PartyPlayed, 0);
+ end;
end;
Case PlaylistMan.Mode of
@@ -3158,8 +3170,8 @@ begin SetLength(SkippedSongs, Length(SkippedSongs)+1);
SkippedSongs[Length(SkippedSongs)-1] := Interaction;
- SetLength(PartyPlayed, Length(PartyPlayed)+1);
- PartyPlayed[Length(PartyPlayed)-1] := Interaction;
+ //SetLength(PartyPlayed, Length(PartyPlayed)+1);
+ //PartyPlayed[Length(PartyPlayed)-1] := Interaction;
SelectRandomSong;
SetJoker;
@@ -3174,8 +3186,8 @@ begin SetLength(SkippedSongs, Length(SkippedSongs)+1);
SkippedSongs[Length(SkippedSongs)-1] := Interaction;
- SetLength(MedleyPlayed, Length(MedleyPlayed)+1);
- MedleyPlayed[Length(MedleyPlayed)-1] := Interaction;
+ //SetLength(MedleyPlayed, Length(MedleyPlayed)+1);
+ //MedleyPlayed[Length(MedleyPlayed)-1] := Interaction;
SelectRandomSong;
SetJoker;
@@ -3192,8 +3204,8 @@ begin SetLength(SkippedSongs, Length(SkippedSongs)+1);
SkippedSongs[Length(SkippedSongs)-1] := Interaction;
- SetLength(MedleyPlayed, Length(MedleyPlayed)+1);
- MedleyPlayed[Length(MedleyPlayed)-1] := Interaction;
+ //SetLength(MedleyPlayed, Length(MedleyPlayed)+1);
+ //MedleyPlayed[Length(MedleyPlayed)-1] := Interaction;
SelectRandomSong;
SetJoker;
@@ -3351,8 +3363,8 @@ begin AddSong(Interaction);
PlaylistMedley.NumMedleySongs := Length(PlaylistMedley.Song);
- SetLength(SkippedSongs, Length(SkippedSongs)+1);
- SkippedSongs[Length(SkippedSongs)-1] := Interaction;
+ //SetLength(SkippedSongs, Length(SkippedSongs)+1);
+ //SkippedSongs[Length(SkippedSongs)-1] := Interaction;
SetLength(MedleyPlayed, Length(MedleyPlayed)+1);
MedleyPlayed[Length(MedleyPlayed)-1] := Interaction;
|