- fixed i_net's GetPlayerName function's indexing.

This commit is contained in:
Christoph Oelckers 2020-09-27 12:13:44 +02:00
parent af5e3dd1b8
commit c326bcd308

View file

@ -67,14 +67,10 @@
# endif
#endif
//#include "doomtype.h"
#include "i_system.h"
//#include "d_net.h"
#include "m_argv.h"
#include "m_crc32.h"
//#include "d_player.h"
#include "st_start.h"
//#include "m_misc.h"
#include "engineerrors.h"
#include "cmdlib.h"
#include "printf.h"
@ -166,8 +162,8 @@ uint8_t TransmitBuffer[TRANSMIT_SIZE];
FString GetPlayerName(int num)
{
if (sysCallbacks && sysCallbacks->GetPlayerName) return sysCallbacks->GetPlayerName(num);
else return FStringf("Player %d", num + 1);
if (sysCallbacks && sysCallbacks->GetPlayerName) return sysCallbacks->GetPlayerName(sendplayer[num]);
else return FStringf("Player %d", sendplayer[num] + 1);
}
//