X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Feclass_fgd.cpp;h=ef1e6dcedc1958f0077379204c9f22aec4b3b8d5;hb=f2f726281efd2c18e56402de58cddba77d393524;hp=7b87791520b4c5365acf8d92fbafe8383bf5a33d;hpb=b7e36c120eb1546a6c6f97f30e42ab7f9a559c61;p=xonotic%2Fnetradiant.git diff --git a/radiant/eclass_fgd.cpp b/radiant/eclass_fgd.cpp index 7b877915..ef1e6dce 100644 --- a/radiant/eclass_fgd.cpp +++ b/radiant/eclass_fgd.cpp @@ -28,6 +28,7 @@ #include "ifilesystem.h" #include "iscriplib.h" #include "qerplugin.h" +#include "mainframe.h" #include "string/string.h" #include "eclasslib.h" @@ -699,12 +700,12 @@ EntityClassFGDAPI(){ m_eclassmanager.realise = &EntityClassFGD_realise; m_eclassmanager.unrealise = &EntityClassFGD_unrealise; - GlobalRadiant().attachGameToolsPathObserver( g_EntityClassFGD ); - GlobalRadiant().attachGameNameObserver( g_EntityClassFGD ); + Radiant_attachGameToolsPathObserver( g_EntityClassFGD ); + Radiant_attachGameNameObserver( g_EntityClassFGD ); } ~EntityClassFGDAPI(){ - GlobalRadiant().detachGameNameObserver( g_EntityClassFGD ); - GlobalRadiant().detachGameToolsPathObserver( g_EntityClassFGD ); + Radiant_detachGameNameObserver( g_EntityClassFGD ); + Radiant_detachGameToolsPathObserver( g_EntityClassFGD ); EntityClassFGD_destroy(); }