Multiplayer suicide message was empty string (#170)

# Conflicts:
#	.gitignore
This commit is contained in:
CommonLoon102 2019-09-17 12:16:05 +00:00 committed by Christoph Oelckers
parent 81f78c24b7
commit 160c93f0ab
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View file

@ -57,6 +57,7 @@ project.xcworkspace/
.DS_Store
._*
/autoload
/movie
/blud*.png
/*.DEM

View file

@ -501,7 +501,7 @@ void netGetPackets(void)
pPacket += 4;
if (*pPacket != '/' || (*pPacket == 0 && *(pPacket+1) == 0) || (*(pPacket+1) >= '1' && *(pPacket+1) <= '8' && *(pPacket+1)-'1' == myconnectindex))
{
sprintf(buffer, "%s : %s", gProfile[nPlayer].name, pPacket);
sprintf(buffer, "%s: %s", gProfile[nPlayer].name, pPacket);
viewSetMessage(buffer);
sndStartSample("DMRADIO", 128, -1);
}

View file

@ -2033,6 +2033,10 @@ void playerFrag(PLAYER *pKiller, PLAYER *pVictim)
if (gGameOptions.nGameType > 0 && nSound >= 0)
sndStartSample(nSound, 255, 2, 0);
}
else
{
sprintf(buffer, gSuicide[nMessage].at0, gProfile[nVictim].name);
}
}
else
{