Skip to content

Commit ca10c16

Browse files
committed
back_to:menu_fix
1 parent 6abb604 commit ca10c16

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

DroneSimulator/src/droneSimulator.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -511,16 +511,6 @@ void DroneSimulator::populateCommandBuffer(VkCommandBuffer commandBuffer, int cu
511511
);
512512
}
513513

514-
// (“back to Menu” text)
515-
menuTxt.print(
516-
0.0f, -0.8f,
517-
"[B] Back to Menu", 3, "SS",
518-
true, true, false,
519-
TAL_CENTER, TRH_CENTER, TRV_BOTTOM,
520-
{1,1,1,1},{0,0,0,0.7f}
521-
);
522-
menuTxt.updateCommandBuffer();
523-
524514
RP.end(commandBuffer);
525515
return;
526516
}
@@ -987,7 +977,7 @@ void DroneSimulator::updateGlobalUBO(GlobalUniformBufferObject& gubo, float elap
987977
{
988978
gubo.time = elapsedTime;
989979

990-
// 3 min cycle
980+
// 4, 5, or 6 min cycle
991981
float t = fmod(elapsedTime, initialGameDuration);
992982

993983
// sun color and direction
@@ -1096,7 +1086,7 @@ float DroneSimulator::checkRingPassage(glm::vec3 dronePos, std::vector<glm::vec3
10961086
for (size_t i = 0; i < rings.size(); ++i) {
10971087
if (!passed[i] && glm::distance(dronePos, rings[i]) < radius) {
10981088
passed[i] = true;
1099-
ringScale[i] = 0.0f; // <— Hiding the ring
1089+
ringScale[i] = 0.0f; // <— hiding the ring
11001090
std::cout << "Great, Ring " << (i + 1) << " passed!" << std::endl;
11011091
}
11021092
}

0 commit comments

Comments
 (0)