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
This commit is contained in:
Resxt committed 2023-10-09 20:32:57 +02:00
1 parent 8bb3055978
commit 525d50dfc0
1 file changed
+4 -1
+4 -1
View File
@@ -16,10 +16,13 @@
/* Entry point */
Init()
Main()
{
SetDvarIfNotInitialized("mapvote_enable", true);
}
Init()
{
if (GetDvarInt("mapvote_enable"))
{
level.mapvote_rotate_function = ::StartRotation;