Skip to content

Commit

Permalink
Update DungGine.h
Browse files Browse the repository at this point in the history
Adding _i postfix to fix a windows warning.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 1062dda commit 2276639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DungGine.h
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ namespace dung
bool place_weapons(int num_weapons, bool only_place_on_dry_land)
{
const auto world_size = m_environment->get_world_size();
const int c_max_num_iters = 1e5;
const int c_max_num_iters = 1e5_i;
int num_iters = 0;
bool valid_pos = false;
for (int wpn_idx = 0; wpn_idx < num_weapons; ++wpn_idx)
Expand Down

0 comments on commit 2276639

Please sign in to comment.