Fix some undefined funcs / strings (#5889)

* fix missing respawn func / spectator string

* fix readSettingsFromParamsArray, cleanup spec event

* cleanup usless if statement
This commit is contained in:
PabstMirror 2017-12-11 13:10:30 -06:00 committed by GitHub
parent d234fd33a0
commit 2aaef9e791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View File

@ -4,6 +4,7 @@ PREP(cbaSettings);
PREP(cbaSettings_loadFromConfig);
PREP(cbaSettings_settingChanged);
PREP(cbaSettings_transferUserSettings);
PREP(readSettingsFromParamsArray);
PREP(actionKeysNamesConverted);
PREP(addCanInteractWithCondition);

View File

@ -19,9 +19,9 @@
params ["_unit", "_vehicle", "_caller"];
if (!alive _unit) then {
// _unit = [_unit, _caller] call FUNC(makeCopyOfBody); //func does not exist
};
// if (!alive _unit) then {
// _unit = [_unit, _caller] call makeCopyOfBody; //func does not exist
// };
private _slotsOpen = false;

View File

@ -28,7 +28,7 @@ class Extended_PostInit_EventHandlers {
class Extended_Respawn_EventHandlers {
class CAManBase {
class ADDON {
respawn = QUOTE(call FUNC(XEH_respawn));
respawn = QUOTE(call FUNC(handleRespawn));
};
};
};

View File

@ -24,8 +24,6 @@ if (isServer) then {
}] call CBA_fnc_addEventHandler;
};
[QGVAR(stageSpectator), FUNC(stageSpectator)] call CBA_fnc_addEventHandler;
// A virtual spectator cannot exist without an interface
if (hasInterface) then {
// Local player (not ACE_Player) must be initalized to check

View File

@ -21,7 +21,7 @@ class CfgPatches {
class CfgRespawnTemplates {
class ADDON {
displayName = CSTRING(DisplayName);
displayName = CSTRING(Module_DisplayName);
onPlayerKilled = QFUNC(respawnTemplate);
onPlayerRespawn = QFUNC(respawnTemplate);
respawnTypes[] = {1,2,3,4,5};