Skip to content

Commit

Permalink
Move constant to be local
Browse files Browse the repository at this point in the history
  • Loading branch information
omckeon committed Feb 28, 2025
1 parent b340e25 commit f702b4e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coresdk/src/test/test_sprites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include <iostream>
#include <vector>

constexpr int COLLISION_INDICATOR_WIDTH = 4;

using namespace splashkit_lib;

enum class object_type
Expand Down Expand Up @@ -465,6 +463,7 @@ rectangle _object_AABB(const quad& obj)
template <typename T1, typename T2>
void resolve_and_draw(T1& collider, const T2& collidee, const vector_2d& direction)
{
constexpr int COLLISION_INDICATOR_WIDTH = 4;
if (is_zero_vector(direction))
{
return;
Expand Down

0 comments on commit f702b4e

Please sign in to comment.