From e5238d095f4f7ed873b80d03b0dd088c207729b3 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sat, 22 Aug 2020 07:25:47 -0400 Subject: [PATCH] Remove timer variable Doesn't feel necessary to me anymore, especially with how the menu works --- src/discord.c | 3 --- src/discord.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/discord.c b/src/discord.c index 91c06ba1..1b2ef625 100644 --- a/src/discord.c +++ b/src/discord.c @@ -231,9 +231,6 @@ static void DRPC_HandleJoinRequest(const DiscordUser *requestUser) newRequest = Z_Calloc(sizeof(discordRequest_t), PU_STATIC, NULL); - // Discord requests expire after 30 seconds - newRequest->timer = (30*TICRATE)-1; - newRequest->username = Z_Calloc(344, PU_STATIC, NULL); snprintf(newRequest->username, 344, "%s", requestUser->username); diff --git a/src/discord.h b/src/discord.h index ec47ec91..97c5557b 100644 --- a/src/discord.h +++ b/src/discord.h @@ -29,7 +29,6 @@ extern struct discordInfo_s { } discordInfo; typedef struct discordRequest_s { - tic_t timer; // Tics left on the request before it expires. char *username; // Discord user name. char *discriminator; // Discord discriminator (The little hashtag thing after the username). Separated for a "hide discriminators" cvar. char *userID; // The ID of the Discord user, gets used with Discord_Respond()