Skip to content

Develop#8

Merged
usermicrodevices merged 5 commits intomainfrom
develop
Jan 24, 2026
Merged

Develop#8
usermicrodevices merged 5 commits intomainfrom
develop

Conversation

@usermicrodevices
Copy link
Owner

No description provided.


try {
x = std::stoi(x_str, nullptr, 16);
z = std::stoi(z_str, nullptr, 16);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 10.1 rule Note

MISRA 10.1 rule
} catch (...) {
return false;
}
}

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
@@ -505,7 +528,7 @@ void ChunkCache::LRUEviction() {
try {
SaveToDiskInternal(key, temp_entry);

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
}
}

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 14.4 rule Note

MISRA 14.4 rule
}

// Process batch

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
}

// Third pass: remap triangles
std::unordered_map<uint64_t, bool> triangle_map; // To avoid duplicates

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.3 rule Note

MISRA 12.3 rule
uint32_t new_v2 = vertex_map[key2];

// Check for degenerate triangles (area check)
if (new_v0 == new_v1 || new_v1 == new_v2 || new_v2 == new_v0) {

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 12.1 rule Note

MISRA 12.1 rule
static_cast<uint64_t>(sorted[2]);

if (triangle_map.find(triangle_key) == triangle_map.end()) {
triangle_map[triangle_key] = true;

Check notice

Code scanning / Cppcheck (reported by Codacy)

Searching before insertion is not necessary. Note

Searching before insertion is not necessary.

if (height < config_.waterLevel) {
if (humidity > 0.7f) return BiomeType::RIVER;
if (humidity > 0.7f)

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.6 rule Note

MISRA 15.6 rule
if (height < config_.waterLevel) {
if (humidity > 0.7f) return BiomeType::RIVER;
if (humidity > 0.7f)
return BiomeType::RIVER;

Check notice

Code scanning / Cppcheck (reported by Codacy)

MISRA 15.5 rule Note

MISRA 15.5 rule
@usermicrodevices usermicrodevices merged commit 1e87d5d into main Jan 24, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant