From 5331bf72ebc9f9995005a2a00d088c90300b7311 Mon Sep 17 00:00:00 2001 From: gustavo-tomas Date: Mon, 30 Oct 2023 16:45:13 -0300 Subject: [PATCH] More lint fixes --- bloss1/src/ecs/scene_parser.cpp | 4 ++-- bloss1/src/ecs/systems/player_controller_system.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bloss1/src/ecs/scene_parser.cpp b/bloss1/src/ecs/scene_parser.cpp index 050fc79..36f2ad3 100644 --- a/bloss1/src/ecs/scene_parser.cpp +++ b/bloss1/src/ecs/scene_parser.cpp @@ -93,9 +93,9 @@ namespace bls { std::ofstream scene(file); - for (const auto &[id, name] : ecs.names) + for (const auto &[id, entity_name] : ecs.names) { - scene << "[" << name << "]" + scene << "[" << entity_name << "]" << "\n"; scene << "{" << "\n"; diff --git a/bloss1/src/ecs/systems/player_controller_system.cpp b/bloss1/src/ecs/systems/player_controller_system.cpp index 51fca20..42c2616 100644 --- a/bloss1/src/ecs/systems/player_controller_system.cpp +++ b/bloss1/src/ecs/systems/player_controller_system.cpp @@ -216,9 +216,9 @@ namespace bls bullet_transform.scale = vec3(15.0f); - PhysicsObject object = PhysicsObject(vec3(0.0f), vec3(10000.0f), front * 500'000.0f, 15.0f); + PhysicsObject bullet_object = PhysicsObject(vec3(0.0f), vec3(10000.0f), front * 500'000.0f, 15.0f); - shoot(ecs, bullet_transform, object); + shoot(ecs, bullet_transform, bullet_object); player_timers[PLAYER_TIMER_STR_SHOOT_COOLDOWN] = 0.0f; } }