mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- fixed i_net's GetPlayerName function's indexing.
This commit is contained in:
parent
af5e3dd1b8
commit
c326bcd308
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue