From 83372e7dea6afa41499c314088502c97b1e8bfc0 Mon Sep 17 00:00:00 2001 From: Ammon Smith Date: Mon, 14 Feb 2022 18:11:49 -0500 Subject: [PATCH] Add explanatory comment. The 0-indexed month value may be confusing. --- orbs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orbs.cpp b/orbs.cpp index 091756fc..32ab6fac 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -1607,6 +1607,9 @@ EX eItem targetRangedOrb(cell *c, orbAction a) { bool isValentines() { const time_t now = time(NULL); const struct tm *datetime = localtime(&now); + + // 0-indexed tm_mon, 1-index tm_mday + // So this is February (2nd month), and the 14th day. return datetime->tm_mon == 1 && datetime->tm_mday == 14; }