mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Uncomment "CrosshairColor" parsing code in config.c.
Untested, but LeoD says it works. git-svn-id: https://svn.eduke32.com/eduke32@2375 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8b7a4dab9b
commit
cf9e0490a2
1 changed files with 20 additions and 19 deletions
|
@ -719,27 +719,28 @@ int32_t CONFIG_ReadSetup(void)
|
|||
G_CheckPlayerColor((int32_t *)&ud.color,-1);
|
||||
g_player[0].ps->palookup = g_player[0].pcolor = ud.color;
|
||||
tempbuf[0] = 0;
|
||||
SCRIPT_GetString(ud.config.scripthandle, "Misc", "CrosshairColor",&tempbuf[0]);
|
||||
if (tempbuf[0])
|
||||
{
|
||||
char *ptr = strtok(tempbuf,",");
|
||||
palette_t temppal;
|
||||
char *palptr = (char *)&temppal;
|
||||
|
||||
i = 0;
|
||||
while (ptr != NULL && i < 3)
|
||||
{
|
||||
palptr[i++] = Batoi(ptr);
|
||||
ptr = strtok(NULL,",");
|
||||
}
|
||||
if (i == 3)
|
||||
{
|
||||
Bmemcpy(&CrosshairColors,&temppal,sizeof(palette_t));
|
||||
DefaultCrosshairColors.f = 1;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
SCRIPT_GetString(ud.config.scripthandle, "Misc", "CrosshairColor",&tempbuf[0]);
|
||||
if (tempbuf[0])
|
||||
{
|
||||
char *ptr = strtok(tempbuf,",");
|
||||
palette_t temppal;
|
||||
char *palptr = (char *)&temppal;
|
||||
|
||||
i = 0;
|
||||
while (ptr != NULL && i < 3)
|
||||
{
|
||||
palptr[i++] = Batoi(ptr);
|
||||
ptr = strtok(NULL,",");
|
||||
}
|
||||
if (i == 3)
|
||||
{
|
||||
Bmemcpy(&CrosshairColors,&temppal,sizeof(palette_t));
|
||||
DefaultCrosshairColors.f = 1;
|
||||
}
|
||||
}
|
||||
|
||||
SCRIPT_GetNumber(ud.config.scripthandle, "Misc", "Executions",&ud.executions);
|
||||
|
||||
// weapon choices are defaulted in G_CheckCommandLine, which may override them
|
||||
|
|
Loading…
Reference in a new issue