ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Flatline_Server.c
(Generate patch)

Comparing Daodan/MSVC/Flatline_Server.c (file contents):
Revision 580 by gumby, Fri Jan 14 07:39:14 2011 UTC vs.
Revision 582 by gumby, Wed Jan 19 04:35:43 2011 UTC

# Line 1 | Line 1
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
# Line 91 | Line 92 | player_info* FLrServer_AddPlayer(int ip,
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);
# Line 145 | Line 148 | void FLsPingAll()
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)