mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 06:14:58 +01:00
chore(editor): Fields: one identifier a statement, contains() for the sets (Sonar cpp:S1659, cpp:S6171)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDcMn1Q7wdYkbxDUWscNHZ
This commit is contained in:
@@ -921,7 +921,7 @@ bool terrain_streamer::waits_for_ground(heightmap::surface_patch const &Patch) c
|
||||
for (auto x{std::min(first.first, last.first)}; x <= std::max(first.first, last.first); ++x)
|
||||
{
|
||||
chunk_key const key{x, z};
|
||||
if (m_chunks.count(key) > 0 || m_removed.count(key) > 0)
|
||||
if (m_chunks.contains(key) || m_removed.contains(key))
|
||||
continue;
|
||||
// still coming while its pack isn't read yet (just after opening the scenery none is); not coming only when
|
||||
// the pack is missing, or read and without that chunk
|
||||
|
||||
Reference in New Issue
Block a user