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

Comparing Daodan/MSVC/Flatline_Net.c (file contents):
Revision 567 by gumby, Fri Jun 25 03:52:34 2010 UTC vs.
Revision 582 by gumby, Wed Jan 19 04:35:43 2011 UTC

# Line 206 | Line 206 | bool NetUDPSocket_Recieve(int socket, so
206          
207   }
208  
209 +
210 +
211   DWORD WINAPI StartServer(void* lol){
212 <        NetPlatform_Initalize();
213 <        FLrServer_Run();
212 >        if(NetPlatform_Initalize() && FlatlineInitialize())
213 >        {
214 >                FLrServer_Run();
215 >        }
216          return 0;
217   }
218  
219   DWORD WINAPI StartClient(void* lol){
220          //NetPlatform_Initalize();
221 <        FLrClient_Run((flatline_packet*)lol);
221 >        if(FlatlineInitialize())
222 >        {
223 >                FLrClient_Run((flatline_packet*)lol);
224 >        }
225          return 0;
226   }
227   void NetCatchError(){

Diff Legend

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