Skip to content

Commit

Permalink
Fix versioning and gear module (locality issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanplecki committed May 10, 2014
1 parent 2dc2519 commit 6f4f827
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4
5
2 changes: 1 addition & 1 deletion mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Mission
randomSeed=4656359;
class Intel
{
briefingName="CO14 Apple Core v5";
briefingName="CO14 Apple Core v6";
briefingDescription="Core Framework Showcase Mission";
startWeather=0.39999998;
forecastWeather=0.25;
Expand Down
2 changes: 1 addition & 1 deletion modules/gear/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class gear
{
name = "Gear Module";
authors[] = {"Naught"};
version = 2;
version = 4;
required_version = 1;
url = "https://github.com/unitedoperations/Core-framework";
preinit = "preinit.sqf";
Expand Down
5 changes: 2 additions & 3 deletions modules/gear/preinit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ gear_fnc_setLoadout = {
private ["_obj"];
_obj = _this select 0;

if (!isDedicated) then {
waitUntil {!isNull player};
};
if (isMultiplayer && isDedicated && {isPlayer _obj}) exitWith {}; // Servers don't load player gear!
if (!isDedicated) then {waitUntil {!isNull player}}; // Clients must wait for server unit hand-over.

if (local _obj) then {
if (_obj isKindOf "Man") then {
Expand Down

0 comments on commit 6f4f827

Please sign in to comment.