mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-12-01 18:31:39 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user