Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Sommersemester 2019
Cpp
PhaseShifter
Commits
f8a2378d
Commit
f8a2378d
authored
Sep 19, 2019
by
Florian Oetke
Browse files
fixed another clang compiler error
parent
e7570b44
Pipeline
#3290
passed with stage
in 3 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/level/level_system.cpp
View file @
f8a2378d
...
...
@@ -125,19 +125,19 @@ namespace phase_shifter::level {
auto
min_x
=
std
::
clamp
(
static_cast
<
std
::
size_t
>
(
std
::
floor
(
origin
.
x
/
tile_size
-
radius
/
tile_size
-
0.5
f
)),
(
std
::
size_t
)
0
,
static_cast
<
std
::
size_t
>
(
0
)
,
level_size_x
-
1
);
auto
min_y
=
std
::
clamp
(
static_cast
<
std
::
size_t
>
(
std
::
floor
(
origin
.
y
/
tile_size
-
radius
/
tile_size
-
0.5
f
)),
(
std
::
size_t
)
0
,
static_cast
<
std
::
size_t
>
(
0
)
,
level_size_y
-
1
);
auto
max_x
=
std
::
clamp
(
static_cast
<
std
::
size_t
>
(
std
::
ceil
(
origin
.
x
/
tile_size
+
radius
/
tile_size
+
0.5
f
)),
(
std
::
size_t
)
0
,
static_cast
<
std
::
size_t
>
(
0
)
,
level_size_x
-
1
);
auto
max_y
=
std
::
clamp
(
static_cast
<
std
::
size_t
>
(
std
::
ceil
(
origin
.
y
/
tile_size
+
radius
/
tile_size
+
0.5
f
)),
(
std
::
size_t
)
0
,
static_cast
<
std
::
size_t
>
(
0
)
,
level_size_y
-
1
);
for
(
auto
y
=
min_y
;
y
<=
max_y
;
y
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment