Fix pilot conversion issue (followup to r9630)

-1 is a valid weapon index, but avoid indexing the array with it

git-svn-id: svn://svn.icculus.org/fs2open@10801 387891d4-d844-0410-90c0-e4c51a9137d3
Fix an assertion logic reversal in r10797, spotted by MageKing17.

git-svn-id: svn://svn.icculus.org/fs2open@10802 387891d4-d844-0410-90c0-e4c51a9137d3
Fix r10801 (thanks to MageKing17 for noticing this)

Really avoid using -1 as an array index

git-svn-id: svn://svn.icculus.org/fs2open@10803 387891d4-d844-0410-90c0-e4c51a9137d3
Fix mantis 3005: add arg so end-campaign sexp can ignore the death screen

git-svn-id: svn://svn.icculus.org/fs2open@10804 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093663: Out-of-bounds access with memcpy() in multi_oo_pack_data() for clients only

git-svn-id: svn://svn.icculus.org/fs2open@10805 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1204290 Copy into fixed size buffer - strncpy() should be restricted by length to that of the target string, and does not guarantee null termination if the source string overran

git-svn-id: svn://svn.icculus.org/fs2open@10806 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093373 Copy-paste error in vm_find_bounding_sphere()

git-svn-id: svn://svn.icculus.org/fs2open@10807 387891d4-d844-0410-90c0-e4c51a9137d3
Fix Mantis 3059: Coverity 1204289 String not null terminated in cf_search_root_pack()

git-svn-id: svn://svn.icculus.org/fs2open@10808 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1107318 Logically dead code in outwnd_print(), check for NULL id has already occurred

git-svn-id: svn://svn.icculus.org/fs2open@10809 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1212011 Unchecked return value in DCF(multi oo)

git-svn-id: svn://svn.icculus.org/fs2open@10810 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093635 Out-of-bounds read in multi_team_report()

git-svn-id: svn://svn.icculus.org/fs2open@10811 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093781 and 1093782 Uninitialized scalar variables in cftp.cpp

git-svn-id: svn://svn.icculus.org/fs2open@10812 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093380 Resource leak in object CFtpGet::CFtpGet()

git-svn-id: svn://svn.icculus.org/fs2open@10813 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093378 and 1093379 Resource leaks in object ChttpGet::ChttpGet()

git-svn-id: svn://svn.icculus.org/fs2open@10814 387891d4-d844-0410-90c0-e4c51a9137d3
Address Coverity 1093687 Resource leak in os_init_cmdline() that would occur when the -parse_cmdline_only flag was set. Refactored to improve readability at the same time. Order of precedence remains data/cmdline_fso.cfg, per-user cmdline_fso.cfg (on Linux and Mac), then actual commandline. The presence of -parse_cmdline_only will ignore all settings in on-disk cmdline_fso.cfg files

git-svn-id: svn://svn.icculus.org/fs2open@10815 387891d4-d844-0410-90c0-e4c51a9137d3
Fix mantis 2923

Backout all_time and multi_stats from the pilotfile stats as
required

git-svn-id: svn://svn.icculus.org/fs2open@10816 387891d4-d844-0410-90c0-e4c51a9137d3
Fix mantis 2920: prevent pilots switching languages

In other words, a pilot can only be used in the same language it was
created with. Checks both the initial selection screen and in the
barracks.
Also fixes issue with PLR version being ignored in pilotfile::verify()

git-svn-id: svn://svn.icculus.org/fs2open@10817 387891d4-d844-0410-90c0-e4c51a9137d3
Fix mantis 2929

Save shortcut rank to the csg flags & bump csg version
Add function to read the csg rank during pilotfile::verify()
Reorder 'find pilots' call so that Game_mode is valid for verify

git-svn-id: svn://svn.icculus.org/fs2open@10818 387891d4-d844-0410-90c0-e4c51a9137d3
Fix Mantis 2773: Models turn black when full nebula enabled in FRED.

git-svn-id: svn://svn.icculus.org/fs2open@10819 387891d4-d844-0410-90c0-e4c51a9137d3