| 1 |
|
#include "Flatline.h" |
| 2 |
|
#include "Flatline_Server.h" |
| 3 |
+ |
#include <Windows.h> |
| 4 |
|
|
| 5 |
|
//I hereby apologize for the uglyness of the below code. |
| 6 |
|
//It was never intended to be "final" code, much less shared with anyone |
| 92 |
|
PlayerList[playerlist_slot]->list_slot = playerlist_slot; |
| 93 |
|
sprintf(PlayerList[playerlist_slot]->name,"%.31s",name); |
| 94 |
|
|
| 95 |
+ |
MultiplayerStatus.PleaseUpdateAllPlayers = 1; |
| 96 |
+ |
|
| 97 |
|
return &Players[player_slot]; |
| 98 |
|
} |
| 99 |
|
return (player_info*)(-1); |
| 148 |
|
{ |
| 149 |
|
flatline_packet ping; |
| 150 |
|
ping.id = PK_PING; |
| 151 |
< |
lastPingTime = ping.ping = ONgGameState->GameTime; |
| 151 |
> |
lastPingTime = ping.ping = GetTickCount(); |
| 152 |
|
UDPServer_SendToAll(&ping, FLATLINE_HEADER + 4); |
| 153 |
|
} |