@@ -138,25 +138,25 @@ DEF_CONSOLE_CMD(ConScrollToTile)
}
// ********************************* //
// * Network Core Console Commands * //
#ifdef ENABLE_NETWORK
DEF_CONSOLE_CMD(ConStatus)
{
const char *status;
int lag;
const ClientState *cs;
const NetworkClientState *cs;
const NetworkClientInfo *ci;
FOR_ALL_CLIENTS(cs) {
lag = NetworkCalculateLag(cs);
ci = DEREF_CLIENT_INFO(cs);
switch (cs->status) {
case STATUS_INACTIVE:
status = "inactive";
break;
case STATUS_AUTH:
status = "authorized";
@@ -208,25 +208,25 @@ DEF_CONSOLE_CMD(ConKick)
return NULL;
IConsolePrint(_iconsole_color_default, "Unknown usage. Usage: kick <client-id>. For client-ids, see 'clients'.");
DEF_CONSOLE_CMD(ConResetCompany)
Player *p;
ClientState *cs;
NetworkClientState *cs;
NetworkClientInfo *ci;
if (argc == 2) {
uint32 index = atoi(argv[1]);
/* Check valid range */
if (index < 1 || index > MAX_PLAYERS) {
IConsolePrintF(_iconsole_color_error, "Company does not exist. Company-ID must be between 1 and %d.", MAX_PLAYERS);
/* Check if company does exist */