Chore: fix windows building caz useless MSVC
This commit is contained in:
parent
8d7a694d72
commit
c49b9d540f
4 changed files with 11 additions and 27 deletions
|
|
@ -38,25 +38,6 @@ namespace RayTracePlugin::shared
|
|||
if (!g_pGlobalVars) g_pGlobalVars = server->GetGlobals();
|
||||
return g_pNetworkServerService->GetIGameServer()->GetGlobals();
|
||||
}
|
||||
constexpr float engine_fixed_tick_interval = 0.015625f;
|
||||
const char* GetMapName()
|
||||
{
|
||||
if (getGlobalVars() == nullptr) return nullptr;
|
||||
|
||||
return getGlobalVars()->mapname.ToCStr();
|
||||
}
|
||||
void ServerCommand(const char* command)
|
||||
{
|
||||
auto clean_command = std::string(command);
|
||||
clean_command.append("\n\0");
|
||||
g_pEngine->ServerCommand(clean_command.c_str());
|
||||
}
|
||||
double GetEngineTime() { return Plat_FloatTime(); }
|
||||
float GetTickInterval() { return engine_fixed_tick_interval; }
|
||||
float GetCurrentTime() { return getGlobalVars()->curtime; }
|
||||
int GetTickCount() { return getGlobalVars()->tickcount; }
|
||||
float GetGameFrameTime() { return getGlobalVars()->frametime; }
|
||||
|
||||
bool g_bHasTicked = false;
|
||||
bool g_bDetoursLoaded = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,13 +37,6 @@ namespace RayTracePlugin::shared
|
|||
extern int source_hook_pluginid;
|
||||
|
||||
CGlobalVars* getGlobalVars();
|
||||
extern const char *GetMapName();
|
||||
extern void ServerCommand(const char *command);
|
||||
extern double GetEngineTime();
|
||||
extern float GetTickInterval();
|
||||
extern float GetCurrentTime();
|
||||
extern int GetTickCount();
|
||||
extern float GetGameFrameTime();
|
||||
|
||||
extern bool g_bDetoursLoaded;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
#include <algorithm>
|
||||
#include <vector.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#undef min
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
namespace RayTracePlugin::VectorExtends
|
||||
{
|
||||
inline const Vector VectorZero{0.0f, 0.0f, 0.0f};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue