We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5560d72 commit 5619d7fCopy full SHA for 5619d7f
src/FLAlertLayer.cpp
@@ -499,12 +499,12 @@ time_t t = time(nullptr);
499
auto now = fmt::localtime(t);
500
501
void DeltaruneAlertLayer::handleAprilFools() {
502
- auto& nameToFile = m_fields->nameToFile;
503
-
504
if (now.tm_mon != 3 || now.tm_mday != 1)
505
return;
506
+ auto& nameToFile = m_fields->nameToFile;
507
auto randomSound = nameToFile.begin();
+
508
std::advance(randomSound, mt() % nameToFile.size());
509
m_fields->textSound = randomSound->first;
510
}
0 commit comments