- replaced 32 bit SDL library - the preincluded one appeared to be broken.

- fixed main group autochoice.
- fixed uninitialized player links for Shadow Warrior.
This commit is contained in:
Christoph Oelckers 2019-11-19 22:35:52 +01:00
parent f24de03501
commit fd31d4fa6a
4 changed files with 6 additions and 2 deletions

Binary file not shown.

View file

@ -293,14 +293,15 @@ int CONFIG_Init()
// If the user has specified a file name, let's see if we know it. // If the user has specified a file name, let's see if we know it.
// //
if (userConfig.gamegrp) if (userConfig.gamegrp.Len())
{ {
FString gamegrplower = userConfig.gamegrp.MakeLower(); FString gamegrplower = "/" + userConfig.gamegrp.MakeLower();
int g = 0; int g = 0;
for (auto& grp : groups) for (auto& grp : groups)
{ {
auto grplower = grp.FileName.MakeLower(); auto grplower = grp.FileName.MakeLower();
grplower.Substitute("\\", "/");
if (grplower.LastIndexOf(gamegrplower) == grplower.Len() - gamegrplower.Len()) if (grplower.LastIndexOf(gamegrplower) == grplower.Len() - gamegrplower.Len())
{ {
groupno = g; groupno = g;

View file

@ -849,6 +849,9 @@ void InitGame()
} }
} }
} }
#else
numplayers = 1; myconnectindex = 0;
connecthead = 0; connectpoint2[0] = -1;
#endif #endif
initsynccrc(); initsynccrc();