From f520743aa29dab64b61ca8d00d4efa268349c3d8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 29 Jun 2004 03:40:32 +0000 Subject: [PATCH] Defaults to mapcycle.txt now. --- plugins/mapchooser.sma | 2 ++ plugins/mapsmenu.sma | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/mapchooser.sma b/plugins/mapchooser.sma index e096b72d..1780f8ff 100755 --- a/plugins/mapchooser.sma +++ b/plugins/mapchooser.sma @@ -66,6 +66,8 @@ public plugin_init() new maps_ini_file[64]; get_configsdir(maps_ini_file, 63); format(maps_ini_file, 63, "%s/maps.ini", maps_ini_file); + if (!file_exists(maps_ini_file)) + format(maps_ini_file, 63, "mapcycle.txt") if ( loadSettings(maps_ini_file) ) set_task(15.0,"voteNextmap",987456,"",0,"b") } diff --git a/plugins/mapsmenu.sma b/plugins/mapsmenu.sma index 189fc993..230e9099 100755 --- a/plugins/mapsmenu.sma +++ b/plugins/mapsmenu.sma @@ -65,6 +65,8 @@ public plugin_init() new maps_ini_file[64]; get_configsdir(maps_ini_file, 63); format(maps_ini_file, 63, "%s/maps.ini", maps_ini_file); + if (!file_exists(maps_ini_file)) + format(maps_ini_file, 63, "mapcycle.txt") load_settings(maps_ini_file) g_cstrikeRunning = (is_running("cstrike") || is_running("czero"))