Conversation
|
|
||
| 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
| } catch (...) { | ||
| return false; | ||
| } | ||
| } |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 12.3 rule Note
| @@ -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
| } | ||
| } | ||
|
|
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 14.4 rule Note
| } | ||
|
|
||
| // Process batch |
Check notice
Code scanning / Cppcheck (reported by Codacy)
MISRA 15.5 rule Note
| } | ||
|
|
||
| // 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
| 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
| 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
|
|
||
| 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
| 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
No description provided.