2 |
|
#include "Flatline_Server.h" |
3 |
|
#include <Windows.h> |
4 |
|
#include "PortForwardWrapper.h" |
5 |
+ |
#include "Mariusnet_Public.h" |
6 |
|
//I hereby apologize for the uglyness of the below code. |
7 |
|
//It was never intended to be "final" code, much less shared with anyone |
8 |
|
|
190 |
|
|
191 |
|
sprintf(Char->OSD.Class, "%s", TMrInstance_GetInstanceName(PlayerList[j]->Chr->ONCC)); |
192 |
|
|
193 |
< |
if(AC) |
193 |
> |
if(AC && AC->PhyContext) |
194 |
|
{ |
195 |
|
Char->Header.Position = AC->PhyContext->Position; |
196 |
|
} |
381 |
|
|
382 |
|
bool FLrServer_Run() |
383 |
|
{ |
384 |
+ |
m_announcegame Game; |
385 |
|
HRESULT ret; |
386 |
|
PortMappingContainer_C PMC = |
387 |
|
{ |
414 |
|
} |
415 |
|
|
416 |
|
DDrConsole_PrintF("Server started at %s...", inet_ntoa (*(struct in_addr *)*host_entry->h_addr_list)); |
417 |
+ |
|
418 |
+ |
Game.port = htons(27777); |
419 |
+ |
sprintf_s(Game.g.Buffer, 128, "%s's Game", MariusLogin); |
420 |
+ |
|
421 |
+ |
MSNet_CreateGame( &Game ); |
422 |
+ |
|
423 |
|
return NetUDPServer_Listen(27777, FLrServer_PacketCallback); |
424 |
|
} |