Removes some usage of DEDICATED_SERVER (#5119)
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -60,13 +60,6 @@
|
||||
|
||||
#include <platform.h>
|
||||
|
||||
#if defined(WIN32) || defined(WIN64) || defined(APPLE) || defined(LINUX)
|
||||
#if defined(DEDICATED_SERVER)
|
||||
// enable/disable map load slicing functionality from the build
|
||||
#define MAP_LOADING_SLICING
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <AzCore/PlatformIncl.h>
|
||||
#include <tlhelp32.h>
|
||||
|
||||
@@ -239,15 +239,16 @@ void UiCanvasAssetRefComponent::Activate()
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
void UiCanvasAssetRefComponent::Deactivate()
|
||||
{
|
||||
#if !defined(DEDICATED_SERVER)
|
||||
if (m_canvasEntityId.IsValid())
|
||||
if (!gEnv->IsDedicated())
|
||||
{
|
||||
gEnv->pLyShine->ReleaseCanvasDeferred(m_canvasEntityId);
|
||||
m_canvasEntityId.SetInvalid();
|
||||
}
|
||||
if (m_canvasEntityId.IsValid())
|
||||
{
|
||||
gEnv->pLyShine->ReleaseCanvasDeferred(m_canvasEntityId);
|
||||
m_canvasEntityId.SetInvalid();
|
||||
}
|
||||
|
||||
UiCanvasAssetRefBus::Handler::BusDisconnect();
|
||||
UiCanvasRefBus::Handler::BusDisconnect();
|
||||
UiCanvasManagerNotificationBus::Handler::BusDisconnect();
|
||||
#endif
|
||||
UiCanvasAssetRefBus::Handler::BusDisconnect();
|
||||
UiCanvasRefBus::Handler::BusDisconnect();
|
||||
UiCanvasManagerNotificationBus::Handler::BusDisconnect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user