From fcca15a78502525b101c5448e1b4f25d21c925ce Mon Sep 17 00:00:00 2001 From: in1tiate Date: Sun, 28 Feb 2021 10:11:52 -0600 Subject: [PATCH] show lock status in getarea --- src/commands.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/commands.cpp b/src/commands.cpp index 2d31aba..6aca17d 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -564,6 +564,17 @@ QStringList AOClient::buildAreaList(int area_idx) QString area_name = server->area_names[area_idx]; AreaData* area = server->areas[area_idx]; entries.append("=== " + area_name + " ==="); + switch (area->locked) { + case AreaData::LockStatus::LOCKED: + entries.append("[LOCKED]"); + break; + case AreaData::LockStatus::SPECTATABLE: + entries.append("[SPECTATABLE]"); + break; + case AreaData::LockStatus::FREE: + default: + break; + } entries.append("[" + QString::number(area->player_count) + " users][" + area->status + "]"); for (AOClient* client : server->clients) { if (client->current_area == area_idx && client->joined) {