mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Swap the qstrcpy parameters and fix the issue with frozen players
git-svn-id: https://svn.eduke32.com/eduke32@302 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2f4725e0f2
commit
ec89d845aa
2 changed files with 6 additions and 4 deletions
|
@ -8838,7 +8838,7 @@ void updatenames(void)
|
|||
if(ud.multimode > 1)
|
||||
{
|
||||
syncnames();
|
||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER && sprite[ps[myconnectindex].i].pal != 1)
|
||||
sprite[ps[myconnectindex].i].pal = ud.pcolor[myconnectindex];
|
||||
}
|
||||
else
|
||||
|
@ -8852,7 +8852,7 @@ void updatenames(void)
|
|||
j = ps[myconnectindex].team;
|
||||
ud.pteam[myconnectindex] = ud.team;
|
||||
|
||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER)
|
||||
if(sprite[ps[myconnectindex].i].picnum == APLAYER && sprite[ps[myconnectindex].i].pal != 1)
|
||||
sprite[ps[myconnectindex].i].pal = ud.pcolor[myconnectindex];
|
||||
}
|
||||
}
|
||||
|
@ -10510,6 +10510,8 @@ char domovethings(void)
|
|||
ps[i].palookup = ud.pcolor[i] = j;
|
||||
}
|
||||
|
||||
|
||||
if(sprite[ps[i].i].pal != 1)
|
||||
sprite[ps[i].i].pal = ud.pcolor[i];
|
||||
|
||||
cheatkeys(i);
|
||||
|
|
|
@ -4326,7 +4326,7 @@ SKIPJIBS:
|
|||
break;
|
||||
case CON_QSTRCPY:
|
||||
if(fta_quotes[i] != NULL && fta_quotes[j] != NULL)
|
||||
Bstrcpy(fta_quotes[j],fta_quotes[i]);
|
||||
Bstrcpy(fta_quotes[i],fta_quotes[j]);
|
||||
else OSD_Printf("%s %d null quote %d %d\n",__FILE__,__LINE__,i,j);
|
||||
break;
|
||||
case CON_CHANGESPRITESTAT:
|
||||
|
|
Loading…
Reference in a new issue