Skip to content

Commit

Permalink
Merge pull request #570 from Sparker95/patch-45
Browse files Browse the repository at this point in the history
  • Loading branch information
billw2012 authored May 19, 2020
2 parents 7546e8b + 85240eb commit 24f04d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Vindicta.Altis/Location/Location.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ CLASS("Location", ["MessageReceiverEx" ARG "Storable"])

// Process buildings, objects with anim markers, and shooting targets
if (_type isKindOf "House" || { gObjectAnimMarkers findIf { _x#0 == _type } != NOT_FOUND } || { _type in gShootingTargetTypes }) then {
T_CALLM2("addObject", _object, _object in _terrainObjects);
T_CALLM3("addObject", _object, _object in _terrainObjects, true);
OOP_DEBUG_1("findAllObjects for %1: found house", T_GETV("name"));
};

Expand All @@ -370,10 +370,10 @@ CLASS("Location", ["MessageReceiverEx" ARG "Storable"])
Arguments: _hObject
*/
METHOD("addObject") {
params [P_THISOBJECT, P_OBJECT("_hObject"), P_BOOL("_isTerrainObject")];
params [P_THISOBJECT, P_OBJECT("_hObject"), P_BOOL("_isTerrainObject"), P_BOOL("_autoSimple")];

// Convert to simple object if required
if(!_isTerrainObject && !IS_SIMPLE_OBJECT _hObject && typeOf _hObject in gObjectMakeSimple) then {
if(_autoSimple && !_isTerrainObject && !IS_SIMPLE_OBJECT _hObject && typeOf _hObject in gObjectMakeSimple) then {
_hObject = [_hObject] call BIS_fnc_replaceWithSimpleObject;
};

Expand Down
2 changes: 1 addition & 1 deletion configs/minorVersion.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44
45

0 comments on commit 24f04d9

Please sign in to comment.