scp-fs2open / fs2open.github.com

Origin Repository for SCP FreeSpace 2 Open
https://www.hard-light.net/
Other
407 stars 164 forks source link

ai_do_objects_undocked_stuff when objects are already undocked #6163

Open DefCynodont opened 5 months ago

DefCynodont commented 5 months ago

Regarding this warning, Call to ai_do_objects_undocked_stuff when objects are already undocked! Trace out and fix! Calling Jettison Cargo on a ship with nothing docked to it seems to trigger it, furthermore, calling the SEXP AI_Undock on undocked ships should ideally do nothing and have the AI cancel the order.

Could this be fixed in code?

Goober5000 commented 5 months ago

Yep, will take a look.

Goober5000 commented 5 months ago

I tried both scenarios using the attached test mission, and both appear to function as expected. Start the mission and wait for the directives to show up. Press 1 to jettison and 2 to undock. undock_test.fs2.txt

Goober5000 commented 5 months ago

Any additional information?

Goober5000 commented 4 months ago

Bumping for a response, especially as we are now in the run-up to 24.2.