[server] Fix compilation errors

This commit is contained in:
RD42 2024-10-27 22:39:37 +08:00
parent ed7889a021
commit 55540b1f10
10 changed files with 50 additions and 6 deletions

0
server/format.cpp Normal file
View File

0
server/format.h Normal file
View File

View File

@ -41,6 +41,7 @@
#include <windows.h> #include <windows.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <shellapi.h>
#include <time.h> #include <time.h>
#else #else
#define SLEEP(x) { usleep(x * 1000); } #define SLEEP(x) { usleep(x * 1000); }

View File

@ -8,7 +8,7 @@
//---------------------------------------------------- //----------------------------------------------------
bool unnamed_1(PVECTOR vec) bool FUNC_1(PVECTOR vec)
{ {
if( vec->X <= 1.0f && vec->X >= -1.0f && if( vec->X <= 1.0f && vec->X >= -1.0f &&
vec->Y <= 1.0f && vec->Y >= -1.0f && vec->Y <= 1.0f && vec->Y >= -1.0f &&
@ -21,7 +21,7 @@ bool unnamed_1(PVECTOR vec)
//---------------------------------------------------- //----------------------------------------------------
bool unnamed_2(PVECTOR vec) bool FUNC_2(PVECTOR vec)
{ {
if( vec->X < 20000.0f && vec->X > -20000.0f && if( vec->X < 20000.0f && vec->X > -20000.0f &&
vec->Y < 20000.0f && vec->Y > -20000.0f && vec->Y < 20000.0f && vec->Y > -20000.0f &&
@ -34,7 +34,7 @@ bool unnamed_2(PVECTOR vec)
//---------------------------------------------------- //----------------------------------------------------
bool unnamed_3(PVECTOR vec) bool FUNC_3(PVECTOR vec)
{ {
if( vec->X < 100.0f && vec->X > -100.0f && if( vec->X < 100.0f && vec->X > -100.0f &&
vec->Y < 100.0f && vec->Y > -100.0f && vec->Y < 100.0f && vec->Y > -100.0f &&

View File

@ -1,7 +1,7 @@
bool unnamed_1(PVECTOR vec); // unused bool FUNC_1(PVECTOR vec); // unused
bool unnamed_2(PVECTOR vec); bool FUNC_2(PVECTOR vec);
bool unnamed_3(PVECTOR vec); bool FUNC_3(PVECTOR vec);
float GetLength(PVECTOR vec); float GetLength(PVECTOR vec);
void CrossProduct(PVECTOR out, PVECTOR vec1, PVECTOR vec2); // unused void CrossProduct(PVECTOR out, PVECTOR vec1, PVECTOR vec2); // unused
void Transform(PVECTOR out, PMATRIX4X4 mat, PVECTOR vec); // unused void Transform(PVECTOR out, PMATRIX4X4 mat, PVECTOR vec); // unused

View File

@ -645,6 +645,22 @@ void CNetGame::Process()
*/ */
} }
void CNetGame::BroadcastData(char *szUniqueID,
RakNet::BitStream *bitStream,
PLAYERID excludedPlayer,
char orderingStream)
{
// TODO: CNetGame::BroadcastData W: .text:0048E190 L: .text:080ABAD0
}
void CNetGame::SendToPlayer(char *szUniqueID,
RakNet::BitStream *bitStream,
PLAYERID playerId,
char orderingChannel)
{
// TODO: CNetGame::SendToPlayer W: .text:0048E440 L: .text:080AC1D0
}
void CNetGame::LoadBanList() void CNetGame::LoadBanList()
{ {
// TODO: CNetGame::LoadBanList W: 48EAE0 L: 80AF1A0 // TODO: CNetGame::LoadBanList W: 48EAE0 L: 80AF1A0

View File

@ -4,7 +4,9 @@
#define MAX_SPAWNS 319 #define MAX_SPAWNS 319
#define GAMESTATE_STOPPED 0
#define GAMESTATE_RUNNING 1 #define GAMESTATE_RUNNING 1
#define GAMESTATE_RESTARTING 2
#define INVALID_ID 0xFFFF #define INVALID_ID 0xFFFF
@ -94,6 +96,16 @@ public:
void Process(); void Process();
void BroadcastData( char *szUniqueID,
RakNet::BitStream *bitStream,
PLAYERID excludedPlayer,
char orderingStream );
void SendToPlayer( char *szUniqueID,
RakNet::BitStream *bitStream,
PLAYERID playerId,
char orderingChannel );
void LoadBanList(); void LoadBanList();
// CLASS SYSTEM // CLASS SYSTEM

View File

@ -2,6 +2,8 @@
#ifndef SAMPSRV_PLAYERPOOL_H #ifndef SAMPSRV_PLAYERPOOL_H
#define SAMPSRV_PLAYERPOOL_H #define SAMPSRV_PLAYERPOOL_H
#define INVALID_PLAYER_ID 0xFFFF
class CPlayerPool // size: WL 199024 class CPlayerPool // size: WL 199024
{ {
private: private:

View File

@ -740,6 +740,12 @@
<File <File
RelativePath=".\exceptions.cpp"> RelativePath=".\exceptions.cpp">
</File> </File>
<File
RelativePath=".\format.cpp">
</File>
<File
RelativePath=".\format.h">
</File>
<File <File
RelativePath=".\gangzonepool.cpp"> RelativePath=".\gangzonepool.cpp">
</File> </File>
@ -815,6 +821,12 @@
<File <File
RelativePath=".\resource.h"> RelativePath=".\resource.h">
</File> </File>
<File
RelativePath=".\runutil.cpp">
</File>
<File
RelativePath=".\runutil.h">
</File>
<File <File
RelativePath=".\server.rc"> RelativePath=".\server.rc">
</File> </File>

View File

@ -10,6 +10,7 @@
static cell AMX_NATIVE_CALL n_open(AMX* amx, cell* params) static cell AMX_NATIVE_CALL n_open(AMX* amx, cell* params)
{ {
// TODO: n_open // TODO: n_open
return 0;
} }
// native db_close(DB:db); // native db_close(DB:db);