Skip to content

Commit b65f1fb

Browse files
committed
Cleanup.
1 parent 00097bc commit b65f1fb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/spaced/spaced/game/player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Player::Player(Services const& services, std::unique_ptr<IController> controller
4747
if (auto const death = resources.get<ParticleEmitter>("assets/particles/explode.json")) { m_death_source = *death; }
4848
m_death_source.config.respawn = false;
4949

50-
m_heat_color = rgbas["ship_heat"];
50+
m_heat_color = rgbas.get_or("ship_heat", bave::red_v);
5151
}
5252

5353
void Player::on_focus(bave::FocusChange const& /*focus_changed*/) { m_controller->untap(); }

src/spaced/spaced/game/player.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ class Player : public IDamageable, public bave::IDrawable {
7676

7777
float m_heat_being_rendered{};
7878
float m_heat{};
79-
float m_heat_increment = 0.1f;
80-
float m_heat_dissipated = 0.4f; // per second
81-
bave::Rgba m_heat_color;
79+
float m_heat_increment{0.1f};
80+
float m_heat_dissipated{0.4f}; // per second
81+
bave::Rgba m_heat_color{};
8282
bool m_is_cooling_down{};
83-
float m_cooldown_threshold = 0.5f;
83+
float m_cooldown_threshold{0.5f};
8484

8585
bave::ParticleEmitter m_death_source{};
8686
std::optional<bave::ParticleEmitter> m_death{};

src/spaced/spaced/game/weapons/gun_kinetic.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#pragma once
2-
#include <bave/core/inclusive_range.hpp>
32
#include <bave/services/audio.hpp>
43
#include <spaced/game/weapon.hpp>
54
#include <spaced/game/weapons/projectile.hpp>

0 commit comments

Comments
 (0)