- Fixed: D_ReadUserInfoString() parsed the final element of a compact string
as the empty string. Since that was the player class, this meant that any games with more than one class would pick a random class in multiplayer. - Fixed: FCanvasTexture::RenderView() should not have color 0 in its output. SVN r735 (trunk)
This commit is contained in:
parent
22df389ad7
commit
0bb9fc1e2d
7 changed files with 15 additions and 10 deletions
|
|
@ -642,7 +642,7 @@ void D_ReadUserInfoStrings (int i, BYTE **stream, bool update)
|
|||
|
||||
if (compact)
|
||||
{
|
||||
value = D_UnescapeUserInfo(ptr, breakpt - ptr);
|
||||
value = D_UnescapeUserInfo(ptr, breakpt != NULL ? breakpt - ptr : strlen(ptr));
|
||||
infotype++;
|
||||
}
|
||||
else
|
||||
|
|
@ -676,7 +676,6 @@ void D_ReadUserInfoStrings (int i, BYTE **stream, bool update)
|
|||
infotype = j;
|
||||
}
|
||||
}
|
||||
|
||||
switch (infotype)
|
||||
{
|
||||
case INFO_Autoaim: {
|
||||
|
|
@ -749,7 +748,7 @@ void D_ReadUserInfoStrings (int i, BYTE **stream, bool update)
|
|||
break;
|
||||
|
||||
case INFO_NeverSwitchOnPickup:
|
||||
if (*value >= '0' && *value <= '9')
|
||||
if (value[0] >= '0' && value[0] <= '9')
|
||||
{
|
||||
info->neverswitch = atoi (value) ? true : false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue