diff options
author | June McEnroe <june@causal.agency> | 2018-03-05 12:54:26 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-03-05 12:54:26 -0500 |
commit | 79ab120ad31ed74a2a3221d14b7472703296a921 (patch) | |
tree | ae575f7e84a2602b85719a35f016b087e9144a63 /server.c | |
parent | Pack message type enums (diff) | |
download | torus-79ab120ad31ed74a2a3221d14b7472703296a921.tar.gz torus-79ab120ad31ed74a2a3221d14b7472703296a921.zip |
Rename Tile timestamps {create,modify,access}Time
Diffstat (limited to '')
-rw-r--r-- | server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server.c b/server.c index 6df4e5a..ae60338 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; } |