Skip to content

Commit

Permalink
v1.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WtzLAS committed Dec 31, 2023
1 parent f93484b commit 07d219f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
5 changes: 4 additions & 1 deletion NorthstarDLL/NorthstarDLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@
<LanguageStandard>stdcpplatest</LanguageStandard>
<AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<Optimization>MaxSpeed</Optimization>
<Optimization>Custom</Optimization>
<ForcedIncludeFiles>pch.h</ForcedIncludeFiles>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard_C>stdc17</LanguageStandard_C>
<InlineFunctionExpansion>Default</InlineFunctionExpansion>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
4 changes: 2 additions & 2 deletions NorthstarDLL/ns_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#ifndef NORTHSTAR_VERSION
// Turning off clang-format here so it doesn't mess with style as it needs to be this way for regex-ing with CI
// clang-format off
#define NORTHSTAR_VERSION 1,16,0,0
#define NORTHSTAR_FILE_VERSION "v1.16.0\0"
#define NORTHSTAR_VERSION 1,16,3,0
#define NORTHSTAR_FILE_VERSION "v1.16.3\0"
// clang-format on
#endif
3 changes: 1 addition & 2 deletions NorthstarDLL/server/serverchathooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ void, __fastcall, (CServerGameDLL* self, unsigned int senderPlayerId, const char
// check chat ratelimits
if (!g_pServerLimits->CheckChatLimits(&R2::g_pClientArray[senderPlayerId - 1]))
return;
spdlog::info("PLAYER INDEX:{}", senderPlayerId);
spdlog::info("SENT INDEX:{}", (static_cast<int>(senderPlayerId) - 1));

SQRESULT result = g_pSquirrel<ScriptContext::SERVER>->Call(
"CServerGameDLL_ProcessMessageStartThread", static_cast<int>(senderPlayerId - 1), text, isTeam);

Expand Down
2 changes: 1 addition & 1 deletion NorthstarDLL/shared/kcpintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ ON_DLL_LOAD_RELIESON("engine.dll", WSAHOOKS, ConVar, (CModule module))
Cvar_kcp_select_timeout =
new ConVar("kcp_select_timeout", "5", FCVAR_NONE, "miliseconds select has to wait, lower is better but consumes more CPU.");

Cvar_kcp_conn_timeout = new ConVar("kcp_conn_timeout", "5000", FCVAR_NONE, "miliseconds before a connection is dropped.");
Cvar_kcp_conn_timeout = new ConVar("kcp_conn_timeout", "7000", FCVAR_NONE, "miliseconds before a connection is dropped.");

Cvar_kcp_fec = new ConVar("kcp_fec", "1", FCVAR_NONE, "whether to enable FEC or not.");

Expand Down
1 change: 0 additions & 1 deletion NorthstarDLL/shared/kcpintegration.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ class NetManager
};

const size_t NET_UDP_MAX_MESSAGE_SIZE = 65535;
const int NET_HOOK_NOT_ALTERED = -114;

class GameSink : public NetSink
{
Expand Down
2 changes: 1 addition & 1 deletion NorthstarDLL/squirrel/squirrel.h
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ inline VoidFunction SQMessageBufferPushArg(Vector3& arg) {
template <ScriptContext context>
inline VoidFunction SQMessageBufferPushArg(SQObject* arg) {
return [arg]{ g_pSquirrel<context>->pushSQObject(g_pSquirrel<context>->m_pSQVM->sqvm, arg); };
}
}
// Ints
template <ScriptContext context, typename T>
requires std::convertible_to<T, int> && (!std::is_floating_point_v<T>)
Expand Down

0 comments on commit 07d219f

Please sign in to comment.