summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2018-02-25 03:38:25 +0000
committeraiju <devnull@localhost>2018-02-25 03:38:25 +0000
commitd3f4786a1fcfb3cf8eba0cad2457622c6487e0e9 (patch)
tree02099ef54230b84fa3276e92773da01631ecde54 /sys/src
parent4aff59b64ca7be9c003883b97d3bbdcd56dc61bc (diff)
mines: documentation and chronometric control of supernatural apparitions
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/games/mines/mines.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/src/games/mines/mines.c b/sys/src/games/mines/mines.c
index 6d90057a4..d9d15ce18 100644
--- a/sys/src/games/mines/mines.c
+++ b/sys/src/games/mines/mines.c
@@ -398,6 +398,14 @@ void main(int argc, char **argv) {
} ARGEND
if(argc > 0) Usage();
+
+ {
+ Tm *tm;
+
+ tm = localtime(time(0));
+ if(tm->mon == 3 && tm->mday == 1)
+ UseGhost = !UseGhost;
+ }
if(initdraw(nil, nil, "mines") < 0) {
fprint(2, "%s: can't open display: %r\n", argv0);