Sync to trunk revision 10223


git-svn-id: svn://svn.icculus.org/fs2open@10227 387891d4-d844-0410-90c0-e4c51a9137d3
sync to trunk 10223


git-svn-id: svn://svn.icculus.org/fs2open@10228 387891d4-d844-0410-90c0-e4c51a9137d3
Change std::map SDL2FS2 to SCP_map


git-svn-id: svn://svn.icculus.org/fs2open@10229 387891d4-d844-0410-90c0-e4c51a9137d3
Removes the CRITICAL_SECTION macros, as these were just obscuring calls to SDL functions


git-svn-id: svn://svn.icculus.org/fs2open@10230 387891d4-d844-0410-90c0-e4c51a9137d3
Replace call to vwglSwapIntervalEXT with SDL_GL_SetSwapInterval


git-svn-id: svn://svn.icculus.org/fs2open@10231 387891d4-d844-0410-90c0-e4c51a9137d3
Fix a warning when copying the webapi port token int into its destination ushort.

git-svn-id: svn://svn.icculus.org/fs2open@10232 387891d4-d844-0410-90c0-e4c51a9137d3
Saner parsing all around for webapi port number.

git-svn-id: svn://svn.icculus.org/fs2open@10233 387891d4-d844-0410-90c0-e4c51a9137d3
Correctly initialize haptic support.


git-svn-id: svn://svn.icculus.org/fs2open@10234 387891d4-d844-0410-90c0-e4c51a9137d3
Found the constant USHRT_MAX I was looking for just a little too late.

git-svn-id: svn://svn.icculus.org/fs2open@10235 387891d4-d844-0410-90c0-e4c51a9137d3
when new subsystem entries are inserted, make sure the blank subsystem gets saved and inserted at the proper spot so that we don't use stale data
(fixes Mantis #2979)

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