about summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-03-05 12:54:26 -0500
committerJune McEnroe <programble@gmail.com>2018-03-05 12:54:26 -0500
commit737c28c63c525fcc033bd9f0adb36e2c65d9f6a8 (patch)
tree13fd6a4318eb9fa8a6d77955e29ad6d5178aa1a6 /server.c
parentPack message type enums (diff)
downloadtorus-737c28c63c525fcc033bd9f0adb36e2c65d9f6a8.tar.gz
torus-737c28c63c525fcc033bd9f0adb36e2c65d9f6a8.zip
Rename Tile timestamps {create,modify,access}Time
Diffstat (limited to '')
-rw-r--r--server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.c b/server.c
index 1c7d425..78752f5 100644
--- a/server.c
+++ b/server.c
@@ -58,24 +58,24 @@ static void tilesMap(void) {
 
 static struct Tile *tileGet(uint32_t tileX, uint32_t tileY) {
     struct Tile *tile = &tiles[tileY * TILE_ROWS + tileX];
-    if (!tile->create) {
+    if (!tile->createTime) {
         memset(tile->cells, ' ', CELLS_SIZE);
         memset(tile->colors, COLOR_WHITE, CELLS_SIZE);
-        tile->create = time(NULL);
+        tile->createTime = time(NULL);
     }
     return tile;
 }
 
 static struct Tile *tileAccess(uint32_t tileX, uint32_t tileY) {
     struct Tile *tile = tileGet(tileX, tileY);
-    tile->access = time(NULL);
+    tile->accessTime = time(NULL);
     tile->accessCount++;
     return tile;
 }
 
 static struct Tile *tileModify(uint32_t tileX, uint32_t tileY) {
     struct Tile *tile = tileGet(tileX, tileY);
-    tile->modify = time(NULL);
+    tile->modifyTime = time(NULL);
     tile->modifyCount++;
     return tile;
 }