From 525d50dfc0d05a46632274e5625d71cc223c1fba Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:32:57 +0200 Subject: [PATCH] mapvote 2.1.4 Fixed a bug introduced in 2.1.2 that wouldn't automatically enable the mapvote the very first game due to dvars initialization time. The mapvote is now properly enabled by default on all games --- mapvote/mapvote.gsc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mapvote/mapvote.gsc b/mapvote/mapvote.gsc index cae1500..1ba40a0 100644 --- a/mapvote/mapvote.gsc +++ b/mapvote/mapvote.gsc @@ -16,10 +16,13 @@ /* Entry point */ -Init() +Main() { SetDvarIfNotInitialized("mapvote_enable", true); +} +Init() +{ if (GetDvarInt("mapvote_enable")) { level.mapvote_rotate_function = ::StartRotation;