mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
linux (compat): Add linux to most Win64 guards
This commit is contained in:
1 parent
8cf5675892
commit
9626065598
180 files changed
+941
-935
No files matched your search
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
extern bool g_Win64DedicatedServer;
|
||||
#endif
|
||||
|
||||
@@ -384,7 +384,7 @@ void TrackedEntity::sendDirtyEntityData()
|
||||
|
||||
void TrackedEntity::broadcast(shared_ptr<Packet> packet)
|
||||
{
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
// On dedicated servers, IsSameSystem() always returns false for remote players
|
||||
// (no split-screen), so the dedup loop never filters anything. Skip straight
|
||||
// to sending to all players in seenBy to avoid O(seenBy^2) overhead.
|
||||
@@ -513,7 +513,7 @@ TrackedEntity::eVisibility TrackedEntity::isVisible(EntityTracker *tracker, shar
|
||||
// players who canReceiveAllPackets().
|
||||
// NOTE: On dedicated servers, all real players are remote so IsSameSystem()
|
||||
// always returns false. Skip this O(players) loop entirely.
|
||||
#ifdef _WINDOWS64
|
||||
#if defined(_WINDOWS64) || defined(__linux__)
|
||||
if (!bVisible && !g_Win64DedicatedServer)
|
||||
#else
|
||||
if (!bVisible)
|
||||
|
||||
Reference in new issue
Block a user