diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-14 18:29:31 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-14 18:31:02 +0100 |
| commit | e2e2bb26cdd89eebb7b22269e9fac695b9c0ca23 (patch) | |
| tree | db725d9a712534cd0077c0986ebf51882ad16496 /src/character.cpp | |
| parent | dc5e66b5a29fd7de8ddf59852ceefd982289b7c3 (diff) | |
a
Diffstat (limited to 'src/character.cpp')
| -rw-r--r-- | src/character.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/character.cpp b/src/character.cpp index 18472954..a0bfbbd6 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -10,8 +10,7 @@ namespace floormat { namespace { -template <typename T> -constexpr T sgn(T val) { return T(T(0) < val) - T(val < T(0)); } +template <typename T> constexpr T sgn(T val) { return T(T(0) < val) - T(val < T(0)); } constexpr int tile_size_1 = iTILE_SIZE2.sum()/2, framerate = 96, move_speed = tile_size_1 * 2; |
