From cd424bf6d6ec7360164a45f560bbc15f8851ec9e Mon Sep 17 00:00:00 2001 From: Vsevolod Kremianskii Date: Fri, 6 Nov 2020 17:36:26 +0700 Subject: [PATCH] fix: Hide swap weapons button in TSL --- src/game/action/objectaction.cpp | 2 +- src/game/gui/hud.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/action/objectaction.cpp b/src/game/action/objectaction.cpp index fef15f74..87c6842f 100644 --- a/src/game/action/objectaction.cpp +++ b/src/game/action/objectaction.cpp @@ -27,7 +27,7 @@ namespace game { ObjectAction::ObjectAction(ActionType type, Object *object) : Action(type), _object(object) { if (!object) { - throw invalid_argument("Object must not be null"); + throw invalid_argument("object must not be null"); } } diff --git a/src/game/gui/hud.cpp b/src/game/gui/hud.cpp index fe6271b0..88bcc3cd 100644 --- a/src/game/gui/hud.cpp +++ b/src/game/gui/hud.cpp @@ -53,6 +53,7 @@ void HUD::load() { _select.load(); hideControl("BTN_CLEARALL"); + hideControl("BTN_SWAPWEAPONS"); hideControl("BTN_TARGET0"); hideControl("BTN_TARGET1"); hideControl("BTN_TARGET2");