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 2015
Cpp
Deth Buff Arr
Commits
9186f7e0
Commit
9186f7e0
authored
Oct 11, 2015
by
Thomas Eppers
Browse files
removed compiler warning in level_manager.cpp
parent
d083879b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gameplay/level_manager.cpp
View file @
9186f7e0
...
...
@@ -168,7 +168,7 @@ namespace gdw {
}
std
::
vector
<
unsigned
long
long
>
del_queue
;
for
(
int
i
=
0
;
i
<
victims_
.
size
();
i
++
)
{
for
(
auto
i
=
0
u
;
i
<
victims_
.
size
();
i
++
)
{
auto
victim
=
engine_
.
entity_manager
().
resolve
(
victims_
[
i
]);
if
(
!
victim
)
continue
;
...
...
@@ -209,7 +209,7 @@ namespace gdw {
unsigned
int
item_drop_chance
=
100
;
// percent
for
(
auto
&
item
:
items_to_create
)
{
srand
(
time
(
0
)
*
time
(
0
));
if
(
rand
()
%
100
<=
item_drop_chance
)
{
if
(
rand
()
%
100
u
<=
item_drop_chance
)
{
srand
(
time
(
0
)
*
time
(
0
));
constexpr
int
max
=
item_type
::
type_count
;
constexpr
int
min
=
0
;
...
...
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