Skip to content

Commit 0288e5a

Browse files
committed
Hotfix 2.6.1.0
Fixed JIP not initializing objects
1 parent 79ea00e commit 0288e5a

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

addons/overthrow_main/functions/interaction/fn_initObjectLocal.sqf

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
private _currentObject = typeOf _this;
2-
31
// The player doesn't have the vars -> wait until they do
42
if (isNil "OT_localPlayerInitDone" || {!(isNil "OT_localPlayerInitDone") && {!(OT_localPlayerInitDone)}}) exitWith {
53
[
64
{!(isNil "OT_localPlayerInitDone") && {OT_localPlayerInitDone}},
7-
{_this call OT_initObjectLocal},
8-
_currentObject,
5+
{_this call OT_fnc_initObjectLocal},
6+
_this,
97
60 // 60s timeout to avoid eternal loop
108
] call CBA_fnc_waitUntilAndExecute;
119
};
1210

13-
if(_currentObject isEqualTo OT_item_Map) then {
11+
private _currentObject = _this;
12+
private _currentObjectType = typeOf _this;
13+
14+
if(_currentObjectType == OT_item_Map) then {
1415
_this addAction ["Town Info", OT_fnc_mapInfoDialog,nil,0,false,true,"",""];
1516
_this addAction ["Reset UI", {
1617
closeDialog 0;
@@ -19,7 +20,7 @@ if(_currentObject isEqualTo OT_item_Map) then {
1920
_this enableDynamicSimulation true;
2021
};
2122

22-
if(_currentObject isEqualTo OT_item_Storage) then {
23+
if(_currentObjectType == OT_item_Storage) then {
2324
_this addAction ["Open Arsenal (This Ammobox)", {[_this select 0,player] call OT_fnc_openArsenal},nil,0,false,true,"","!(call OT_fnc_playerIsAtWarehouse)"];
2425
_this addAction ["Open Arsenal (Warehouse)", {["WAREHOUSE",player,_this select 0] call OT_fnc_openArsenal},nil,0,false,true,"","call OT_fnc_playerIsAtWarehouse"];
2526
_this addAction ["Take From Warehouse", {
@@ -60,14 +61,14 @@ if(_currentObject isEqualTo OT_item_Storage) then {
6061
_this enableDynamicSimulation true;
6162
};
6263

63-
if(_currentObject isEqualTo OT_item_Safe) then {
64+
if(_currentObjectType == OT_item_Safe) then {
6465
_this addAction ["Put Money", OT_fnc_safePutMoney,nil,0,false,true,"",""];
6566
_this addAction ["Take Money", OT_fnc_safeTakeMoney,nil,0,false,true,"",""];
6667
_this addAction ["Set Password", OT_fnc_safeSetPassword,nil,0,false,true,"","(_target getVariable ['owner','']) isEqualTo getplayeruid _this"];
6768
_this enableDynamicSimulation true;
6869
};
6970

70-
if(_currentObject isEqualTo "Land_Cargo_House_V4_F") then {
71+
if(_currentObjectType == "Land_Cargo_House_V4_F") then {
7172
[_this] call ace_repair_fnc_moduleAssignRepairFacility;
7273
_this enableDynamicSimulation true;
7374
};
@@ -80,7 +81,7 @@ if(_this isKindOf "CAManBase" || _this isKindOf "FlagCarrier") exitWith {};
8081
if(_this isKindOf "Building" || _this isKindOf "LandVehicle") exitWith{};
8182

8283
_dir = 0;
83-
if(_currentObject isEqualTo "C_Rubberboat") then {
84+
if(_currentObjectType == "C_Rubberboat") then {
8485
_dir = 90;
8586
};
8687
[_this, true, [0, 2, 0.4],_dir] call ace_dragging_fnc_setCarryable;

addons/overthrow_main/script_version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
#define MAJOR 2
2020
#define MINOR 6
21-
#define PATCHLVL 0
21+
#define PATCHLVL 1
2222
#define BUILD 0

0 commit comments

Comments
 (0)