mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Removed redundant defaultValue and checks
This commit is contained in:
parent
6ba4289511
commit
22c5c03f6f
@ -16,7 +16,6 @@ class CfgVehicles {
|
||||
displayName = "$STR_ACE_NameTags_ShowPlayerNames";
|
||||
description = "$STR_ACE_NameTags_ShowPlayerNames_Desc";
|
||||
typeName = "SCALAR";
|
||||
defaultValue = 1;
|
||||
class values {
|
||||
class Disabled {
|
||||
name = "$STR_ACE_NameTags_Disabled";
|
||||
|
@ -1,9 +1,7 @@
|
||||
// by commy2 and esteldunedain
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (GVAR(showPlayerNames) > 0) then {
|
||||
[] call FUNC(initIsSpeaking);
|
||||
};
|
||||
[] call FUNC(initIsSpeaking);
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
@ -26,6 +24,6 @@ GVAR(ShowNamesTime) = -10;
|
||||
|
||||
|
||||
// Draw handle
|
||||
if (GVAR(showPlayerNames) > 0 || GVAR(showVehicleCrewInfo)) then {
|
||||
if (GVAR(showPlayerNames) > 0) then {
|
||||
addMissionEventHandler ["Draw3D", {_this call FUNC(onDraw3d);}];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user