Skip to content
Snippets Groups Projects
Commit d058eac6 authored by Yukita Mayako's avatar Yukita Mayako
Browse files

Fix server spawning using the player number rather than the node number...?

parent 41b27967
No related branches found
No related tags found
No related merge requests found
...@@ -698,7 +698,7 @@ void Net_SpawnPlayer(UINT8 pnum, UINT8 node) ...@@ -698,7 +698,7 @@ void Net_SpawnPlayer(UINT8 pnum, UINT8 node)
return; return;
WRITEUINT8(buf, SERVER_SPAWN); WRITEUINT8(buf, SERVER_SPAWN);
WRITEUINT16(buf, pnum+1); WRITEUINT16(buf, playernode[pnum]+1);
WRITEINT16(buf, players[pnum].mo->x >> 16); WRITEINT16(buf, players[pnum].mo->x >> 16);
WRITEINT16(buf, players[pnum].mo->y >> 16); WRITEINT16(buf, players[pnum].mo->y >> 16);
WRITEINT16(buf, players[pnum].mo->z >> 16); WRITEINT16(buf, players[pnum].mo->z >> 16);
...@@ -730,7 +730,7 @@ static void Net_MovePlayers(void) ...@@ -730,7 +730,7 @@ static void Net_MovePlayers(void)
buf = net_buffer; buf = net_buffer;
WRITEUINT8(buf, SERVER_MOVE); WRITEUINT8(buf, SERVER_MOVE);
WRITEUINT16(buf, i+1); WRITEUINT16(buf, playernode[i]+1);
WRITEINT16(buf, players[i].mo->x >> 16); WRITEINT16(buf, players[i].mo->x >> 16);
WRITEINT16(buf, players[i].mo->y >> 16); WRITEINT16(buf, players[i].mo->y >> 16);
WRITEINT16(buf, players[i].mo->z >> 16); WRITEINT16(buf, players[i].mo->z >> 16);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment