Skip to content

Commit 226894e

Browse files
authored
Merge pull request #3 from TaskForce47/0.2.3
0.2.3
2 parents f3fcd71 + 9419144 commit 226894e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

addons/main/CfgFunctions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CfgFunctions
88
class crashToDesktop {};
99
class getVehicleDisplayName {};
1010
class initClient { preInit = 1; };
11-
class initServer { postInit = 1; };
11+
class initServer { preInit = 1; };
1212
};
1313
};
1414
class TF47_Base

addons/main/functions/base/fn_initServer.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "macros.hpp"
22

3-
GVAR(isServer) = false;
3+
if (!isServer) exitWith {};
44

55
GVAR(baseIndex) = 0;
66
GVAR(baseList) = [];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
if (isServer) exitWith {};
22

33
disableUserInput false;
4-
compile preprocessFileLineNumbers "\tf47\tf47_framework\addons\main\functions\common\crashfile.sqf"
4+
compile preprocessFile "\tf47\tf47_framework\addons\main\functions\common\crashfile.sqf"

addons/ticketsystem/functions/fn_registerUnit.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (_unit isEqualType objNull) then {
1313
_unit = str _unit;
1414
};
1515

16-
if (_cost < 0) then { _cost = _cost * -1; };
16+
if (_cost < 0) then { _cost = abs _cost; };
1717

1818
GVAR(registeredUnits) set [_unit, [_unit, _cost, _role]];
1919

addons/whitelist/functions/fn_registerRoles.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (_slot isEqualType objNull) then {
1515

1616
//check if user has passed an invalid role
1717
{
18-
if (! (_x in _validRoles)) exitWith {
18+
if (! (_x in GVAR(validRoles))) exitWith {
1919
LOG_2("WARNING! COULD NOT REGISTER SLOT ROLES! PASSED INVALID ROLE!", _x);
2020
false
2121
};

0 commit comments

Comments
 (0)