diff options
author | June McEnroe <june@causal.agency> | 2018-08-25 00:44:51 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-25 00:44:51 -0400 |
commit | c92e9c288a8e4c6faad54daec07d7ac9aff43a86 (patch) | |
tree | 912cd782543164c53d64d206faeb949642a51456 | |
parent | Calculate min and max meta for map server-side (diff) | |
download | torus-c92e9c288a8e4c6faad54daec07d7ac9aff43a86.tar.gz torus-c92e9c288a8e4c6faad54daec07d7ac9aff43a86.zip |
Send now in map
-rw-r--r-- | server.c | 1 | ||||
-rw-r--r-- | torus.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c index d01332f..08b8dd1 100644 --- a/server.c +++ b/server.c @@ -290,6 +290,7 @@ static bool clientMap(const struct Client *client) { time_t now = time(NULL); struct Map map = { + .now = now, .min = { .createTime = now, .modifyTime = now, diff --git a/torus.h b/torus.h index a83cac0..ad7953d 100644 --- a/torus.h +++ b/torus.h @@ -104,6 +104,7 @@ enum { }; struct Map { + time_t now; struct Meta min; struct Meta max; struct Meta meta[MAP_ROWS][MAP_COLS]; |