fix(rocket): cancelling a multi-zone launch takes the rocket off again

A multi-zone entrance (the LUP launch pads) equips the player's rocket when
used and opens the zone menu. Closing the menu without a launch, or dying with
it open, fires the same "CancelLaunch" event at the entrance, locally and to
the server (LWOMultiZoneEntranceComponent::MultiZoneEntranceSelected
Run). Only the property entrance handled it, so the
rocket stayed equipped there. Both now take it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-11 06:56:22 -06:00
parent ad2aadc1fe
commit 4dcd583c3f

View File

@@ -128,9 +128,10 @@ namespace GameMessages {
});
}
// The property browser was closed without a launch, or the player died with it open
// (LWOPropertyEntranceComponent::onPropertyEntranceSelected)
if (args == u"CancelLaunch" && entity.HasComponent(eReplicaComponentType::PROPERTY_ENTRANCE)) {
// The property browser or the multi-zone menu was closed without a launch, or the player died with it open
// (LWOPropertyEntranceComponent::onPropertyEntranceSelected;
// LWOMultiZoneEntranceComponent::MultiZoneEntranceSelected, Run)
if (args == u"CancelLaunch" && (entity.HasComponent(eReplicaComponentType::PROPERTY_ENTRANCE) || entity.HasComponent(eReplicaComponentType::MULTI_ZONE_ENTRANCE))) {
PropertyEntranceComponent::CancelLaunch(*player);
}