mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 17:46:53 -10:00
sync with trunk r4763
This commit is contained in:
1 parent
e4a8b212ab
commit
a68f03eedc
25 files changed
+268
-117
No files matched your search
@@ -9050,6 +9050,18 @@ ADE_FUNC(isCurrentPlayerMulti, l_Testing, NULL, "Returns whether current player
|
||||
return ADE_RETURN_TRUE;
|
||||
}
|
||||
|
||||
// Om_tracker_flag should already be set in FreeSpace.cpp, needed to determine if PXO is enabled from the registry
|
||||
extern int Om_tracker_flag; // needed for FS2OpenPXO config
|
||||
|
||||
ADE_FUNC(isPXOEnabled, l_Testing, NULL, "Returns whether PXO is currently enabled in the configuration.", "boolean", "Whether PXO is enabled or not")
|
||||
{
|
||||
if(!(Om_tracker_flag))
|
||||
return ADE_RETURN_FALSE;
|
||||
|
||||
return ADE_RETURN_TRUE;
|
||||
}
|
||||
|
||||
|
||||
// *************************Helper functions*********************
|
||||
//WMC - This should be used anywhere that an 'object' is set, so
|
||||
//that scripters can get access to as much relevant data to that
|
||||
|
||||
Reference in new issue
Block a user