Removed redundant defaultValue and checks

This commit is contained in:
jonpas 2015-05-15 00:04:20 +02:00
parent 6ba4289511
commit 22c5c03f6f
2 changed files with 2 additions and 5 deletions

View File

@ -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";

View File

@ -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);}];
};