From 1ce576c0c602ebe0bf8629279fd75177fa4f8e80 Mon Sep 17 00:00:00 2001 From: Piotr Warszawski Date: Fri, 4 Sep 2026 22:22:25 +0200 Subject: [PATCH] whois: log the no-activator case instead of failing silently A whois with no triggering vehicle previously just wrote nothing to the target cell with no trace in the log, which is a real pain to diagnose from the scenery side (this is exactly the kind of thing that cost real debugging time on a station script recently). Co-Authored-By: Claude Sonnet 5 --- world/Event.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/world/Event.cpp b/world/Event.cpp index 73f10592..8e89740e 100644 --- a/world/Event.cpp +++ b/world/Event.cpp @@ -1014,7 +1014,12 @@ whois_event::deserialize_( cParser &Input, scene::scratch_data &Scratchpad ) { void whois_event::run_() { - if( m_activator == nullptr ) { return; } + if( m_activator == nullptr ) { + // no triggering vehicle to report on - most likely whois was launched from a + // scenery event chain rather than a track/isolation crossing + WriteLog( "Type: WhoIs (" + std::to_string( m_input.flags ) + ") - no activator, event ignored" ); + return; + } for( auto &target : m_targets ) { auto *targetcell { static_cast( std::get( target ) ) };