]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Warn if there are too many parameters for a bot in bots.txt
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index 7061ff91ce9b16f080c86b139f195e06599368ab..90338d20214e1e0ec3132f7af1c3b597bba4f4a3 100644 (file)
@@ -241,6 +241,9 @@ void bot_setnameandstuff(entity this)
        READSKILL(bot_thinkskill, 1, 0.5); // think skill
        READSKILL(bot_aiskill, 2, 0); // "ai" skill
 
+       if (file >= 0 && argv(prio) != "")
+               LOG_INFOF("^1Warning^7: too many parameters for bot %s, please check format of %s", bot_name, autocvar_bot_config_file);
+
        this.bot_config_loaded = true;
 
        // this is really only a default, TeamBalance_JoinBestTeam is called later