From 4d81856de055ca0ff329e54ec8b8b911facf7e27 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 23 Jul 2021 11:59:01 +0200 Subject: [PATCH] feat(RepairGun): Call repair helper function --- BigBaseV2/src/backend/looped/weapons/repair_gun.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BigBaseV2/src/backend/looped/weapons/repair_gun.cpp b/BigBaseV2/src/backend/looped/weapons/repair_gun.cpp index cc67f506..47506ec6 100644 --- a/BigBaseV2/src/backend/looped/weapons/repair_gun.cpp +++ b/BigBaseV2/src/backend/looped/weapons/repair_gun.cpp @@ -1,6 +1,7 @@ #include "backend/looped/looped.hpp" #include "core/enums.hpp" #include "util/entity.hpp" +#include "util/vehicle.hpp" #include "util/notify.hpp" namespace big @@ -27,9 +28,7 @@ namespace big { if (ENTITY::IS_ENTITY_A_VEHICLE(entity)) { - VEHICLE::SET_VEHICLE_FIXED(entity); - VEHICLE::SET_VEHICLE_DEFORMATION_FIXED(entity); - VEHICLE::SET_VEHICLE_DIRT_LEVEL(entity, 0.f); + vehicle::repair(entity); } else {