Skip to content

Commit

Permalink
Fixed event statement arguments, reworded comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpas committed Jul 7, 2015
1 parent cb210f9 commit 815b798
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions addons/sitting/XEH_clientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ if !(hasInterface) exitWith {};
["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition);

// Handle interruptions
["medical_onUnconscious", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetHandcuffed", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetSurrendered", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["medical_onUnconscious", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
2 changes: 1 addition & 1 deletion addons/sitting/functions/fnc_handleInterrupt.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Handles interruptions of sitting, like killed or unconsciousness.
*
* Arguments:
* Player <OBJECT>
* 0: Player <OBJECT>
*
* Return Value:
* None
Expand Down
2 changes: 1 addition & 1 deletion addons/sitting/functions/fnc_sit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ _sitRotation = if (isNumber (_configFile >> QGVAR(sitRotation))) then {getNumber

// Set direction and position
_player setDir _sitDirection;
// Can NOT use ASL/ATL as modelToWorld returns absolute world position
// No need for ATL/ASL as modelToWorld returns in format position
_player setPos (_seat modelToWorld _sitPosition);

// Set variables
Expand Down

0 comments on commit 815b798

Please sign in to comment.