about summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-31 19:21:50 -0400
committerJune McEnroe <june@causal.agency>2017-07-31 19:21:50 -0400
commitf7bdd3ce58117d17a24d81eacff41db43fa1f9d8 (patch)
tree48e4778a17104fcaf1f472eabed201307e534215 /server.c
parentAdjust move speed in client (diff)
downloadtorus-f7bdd3ce58117d17a24d81eacff41db43fa1f9d8.tar.gz
torus-f7bdd3ce58117d17a24d81eacff41db43fa1f9d8.zip
Track tile access counts
Diffstat (limited to '')
-rwxr-xr-xserver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c
index cea66c1..46f4c06 100755
--- a/server.c
+++ b/server.c
@@ -44,6 +44,7 @@ static struct Tile *tileGet(uint32_t tileX, uint32_t tileY) {
         tile->create = time(NULL);
     }
     tile->access = time(NULL);
+    tile->accessCount++;
     return tile;
 }