@@ -187,32 +187,6 @@ bool CMapEventManager::Call(const char* szName, const CLuaArguments& Arguments,
187187 if (!g_pClientGame->GetDebugHookManager ()->OnPreEventFunction (szName, Arguments, pSource, nullptr , pMapEvent))
188188 continue ;
189189
190- const char * scriptName = pMapEvent->GetVM ()->GetScriptName ();
191- CResource* pEventResource = pMapEvent->GetVM ()->GetResource ();
192- const char * resourceName = pEventResource ? pEventResource->GetName () : " <no-resource>" ;
193-
194- SString sourceTag = " <null>" ;
195- if (pSource)
196- {
197- const SString& sourceTypeName = pSource->GetTypeName ();
198- const char * sourceTypeNameCStr = !sourceTypeName.empty () ? sourceTypeName.c_str () : " <unknown>" ;
199- sourceTag.Format (" %s(%u)" , sourceTypeNameCStr, pSource->GetID ().Value ());
200- }
201-
202- SString thisTag = " <null>" ;
203- if (pThis)
204- {
205- const SString& thisTypeName = pThis->GetTypeName ();
206- const char * thisTypeNameCStr = !thisTypeName.empty () ? thisTypeName.c_str () : " <unknown>" ;
207- thisTag.Format (" %s(%u)" , thisTypeNameCStr, pThis->GetID ().Value ());
208- }
209-
210- SString telemetryDetail;
211- telemetryDetail.Format (" %s::%s src=%s this=%s" , scriptName, resourceName, sourceTag.c_str (), thisTag.c_str ());
212- // Tag each Lua event dispatch so crash dumps show which
213- // resource/event/element executed last
214- CrashTelemetry::Scope eventScope (0 , pThis, " LuaEvent::Call" , telemetryDetail.c_str ());
215-
216190 // Store the current values of the globals
217191 lua_getglobal (pState, " source" );
218192 CLuaArgument OldSource (pState, -1 );
0 commit comments