diff options
author | jekatt <jekatt@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-11-23 14:30:13 +0000 |
---|---|---|
committer | jekatt <jekatt@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-11-23 14:30:13 +0000 |
commit | 38ca91b7c307c4d87eaf2f4b73e5426567262216 (patch) | |
tree | 27819b16578be52ab8f2056847c1591d61c4d812 | |
parent | 8585054e901bf9c7d05e1ab25ab872220d0f5018 (diff) | |
download | usdx-38ca91b7c307c4d87eaf2f4b73e5426567262216.tar.gz usdx-38ca91b7c307c4d87eaf2f4b73e5426567262216.tar.xz usdx-38ca91b7c307c4d87eaf2f4b73e5426567262216.zip |
Fixed: PartyModus: SinglePlayer Teams but only Multiplayer Plugins available
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@633 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenPartyOptions.pas | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenPartyOptions.pas b/Game/Code/Screens/UScreenPartyOptions.pas index 91611d34..06e95214 100644 --- a/Game/Code/Screens/UScreenPartyOptions.pas +++ b/Game/Code/Screens/UScreenPartyOptions.pas @@ -45,6 +45,7 @@ uses UGraphic, UMain, UIni, UTexture, ULanguage, UParty, UDLLManager, UPlaylist, function TScreenPartyOptions.ParseInput(PressedKey: Cardinal; ScanCode: byte; PressedDown: Boolean): Boolean;
var
I, J: Integer;
+ OnlyMultiPlayer: boolean;
begin
Result := true;
If (PressedDown) Then
@@ -67,7 +68,15 @@ begin //Don'T start when Playlist is Selected and there are no Playlists
If (Playlist = 2) and (Length(PlaylistMan.Playlists) = 0) then
Exit;
-
+ // Don't start when SinglePlayer Teams but only Multiplayer Plugins available
+ OnlyMultiPlayer:=true;
+ for I := 0 to High(DLLMan.Plugins) do begin
+ OnlyMultiPlayer := (OnlyMultiPlayer AND DLLMan.Plugins[I].TeamModeOnly);
+ end;
+ if (OnlyMultiPlayer) AND ((NumPlayer1 = 0) OR (NumPlayer2 = 0) OR ((NumPlayer3 = 0) AND (NumTeams = 1))) then begin
+ ScreenPopupError.ShowPopup(Language.Translate('ERROR_NO_PLUGINS'));
+ Exit;
+ end;
//Save Difficulty
Ini.Difficulty := SelectsS[SelectLevel].SelectedOption;
Ini.SaveLevel;
|