Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: General Battuta on January 31, 2014, 01:17:03 pm

Title: num-ships-in-battle
Post by: General Battuta on January 31, 2014, 01:17:03 pm
What will this SEXP return if it targets a wing that has never arrived? 0 or something else? (it looks like it's not 0)
Title: Re: num-ships-in-battle
Post by: Goober5000 on January 31, 2014, 03:05:14 pm
The switch statement doesn't handle OSWPT_TYPE_WING_NOT_PRESENT, so it will return 0.  I think 0 is the correct thing to return, too.
Title: Re: num-ships-in-battle
Post by: General Battuta on January 31, 2014, 03:06:19 pm
I agree. I think my initial assumption that it was !0 was based on a mistaken test case.