Open dr-pegasus opened 1 month ago
Care to do a pull request?
A better solution would be to fix this in the UI code which implements the missile button. Simply checking for game paused before calling Ship:FireMissileAt() would be fine.
Given that Ship:FireMissileAt() is mid-refactor in #5734 any changes to that function directly are going to cause merge conflicts one way or another.
Observed behaviour
Missiles can be fired (spawned) when the game is paused. Instead of seeing a swarm of missiles flying toward the target, there is very high risk of blowing up the player's own ship.
My version of Pioneer: pioneer-20240710-win
This probably is just an unhappy behavior, rather than a legit bug. However, I recommend adding pause check like this, in \data\libs\Ship.lua