X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=35f667bf432ce2678561f40920e28d44ac93df0f;hp=7a1f2978e5f18dd9d594cd83b157422f072e3d3c;hb=ed4b63b2ef2ac7127d4129b9f60c1fb37a96697e;hpb=6f6b37c341bc73e5e2a135f355a9891292b8e849 diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 7a1f297..35f667b 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -217,6 +217,12 @@ const STD_PLAYER_MODEL = 'Doomer'; +{$IFDEF HEADLESS} + DEFAULT_PLAYERS = 0; +{$ELSE} + DEFAULT_PLAYERS = 1; +{$ENDIF} + var gStdFont: DWORD; gGameSettings: TGameSettings; @@ -7806,9 +7812,9 @@ begin // Number of players: s := Find_Param_Value(pars, '-pl'); if (s = '') then - n := 1 + n := DEFAULT_PLAYERS else - n := StrToIntDef(s, 1); + n := StrToIntDef(s, DEFAULT_PLAYERS); // Start: s := Find_Param_Value(pars, '-port');