diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 14:49:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 14:49:09 +0100 |
commit | b92b3b830dc53ecc2accf8472a8e4ce8be2e19dc (patch) | |
tree | 8776467b7ef4842dae04beaa781aebfe9084d82e | |
parent | bff2e7d64d45d8e331da703cba0d74894cf32a84 (diff) |
`make format`
-rw-r--r-- | game/Random.cpp | 1 | ||||
-rw-r--r-- | game/Random.h | 2 | ||||
-rw-r--r-- | src/crepe/api/Sprite.cpp | 4 |
3 files changed, 1 insertions, 6 deletions
diff --git a/game/Random.cpp b/game/Random.cpp index 59be3c5..ace6245 100644 --- a/game/Random.cpp +++ b/game/Random.cpp @@ -25,4 +25,3 @@ unsigned Random::u(unsigned upper, unsigned lower) { unsigned x = rand() % range; return x + lower; } - diff --git a/game/Random.h b/game/Random.h index cf05e87..8af9669 100644 --- a/game/Random.h +++ b/game/Random.h @@ -6,6 +6,4 @@ public: static double d(double upper = 1.0, double lower = 0.0); static int i(int upper, int lower = 0); static unsigned u(unsigned upper, unsigned lower = 0); - }; - diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp index 2919857..3c77e2e 100644 --- a/src/crepe/api/Sprite.cpp +++ b/src/crepe/api/Sprite.cpp @@ -20,9 +20,7 @@ Sprite::Sprite(game_object_id_t id, const Asset & texture, const Sprite::Data & Sprite::~Sprite() { dbg_trace(); } -unique_ptr<Component> Sprite::save() const { - return unique_ptr<Component>(new Sprite(*this)); -} +unique_ptr<Component> Sprite::save() const { return unique_ptr<Component>(new Sprite(*this)); } void Sprite::restore(const Component & snapshot) { *this = static_cast<const Sprite &>(snapshot); |