From 52ff6a4140caa7e16eb3adec4948251593d213a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 1 Apr 2014 22:33:15 +0200 Subject: [PATCH] Deny april fools outside of first april. --- logic/VersionFinal.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/logic/VersionFinal.cpp b/logic/VersionFinal.cpp index 10e3ec829..dedf2ce5a 100644 --- a/logic/VersionFinal.cpp +++ b/logic/VersionFinal.cpp @@ -345,6 +345,13 @@ void VersionFinal::reapply(const bool alreadyReseting) void VersionFinal::finalize() { + // HACK: deny april fools. my head hurts enough already. + QDate now = QDate::currentDate(); + bool isAprilFools = now.month() == 4 && now.day() == 1; + if (assets.endsWith("_af") && !isAprilFools) + { + assets = assets.left(assets.length() - 3); + } if (assets.isEmpty()) { assets = "legacy";