16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 14:49:19 +02:00

reformat: remove redundant parentheses

This commit is contained in:
jerrrrycho
2026-07-04 05:39:03 +02:00
parent cf9fb07800
commit 31f9ca0afc
9 changed files with 57 additions and 39 deletions

View File

@@ -30,9 +30,9 @@ struct semaphore : public map_object
TMemCell *memcell = nullptr;
virtual gfx::basic_vertex vertex() override {
const bool stop_signal = memcell->IsVelocity() && (memcell->Value1() == 0.0);
const bool stop_signal = memcell->IsVelocity() && memcell->Value1() == 0.0;
return gfx::basic_vertex(location, glm::vec3(),
(!stop_signal) ? glm::vec2(0.0f, 0.2f) : glm::vec2(0.2f, 0.4f));
!stop_signal ? glm::vec2(0.0f, 0.2f) : glm::vec2(0.2f, 0.4f));
}
};