From 5846656953e1fc58d6ca5616d021b111ef26a322 Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Sat, 9 Mar 2013 22:53:26 +0000 Subject: [PATCH] remove that annoying extra conoutf from botgames git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7331 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/bot/botmanager.cpp | 5 ++--- source/src/texture.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/src/bot/botmanager.cpp b/source/src/bot/botmanager.cpp index df668012..3834d013 100644 --- a/source/src/bot/botmanager.cpp +++ b/source/src/bot/botmanager.cpp @@ -666,7 +666,7 @@ void CBotManager::CreateSkillData() } } - conoutf("done\n"); + conoutf("done"); } void CBotManager::InitSkillData() @@ -988,9 +988,8 @@ bool botmode() void addbot(char *arg1, char *arg2, char *arg3) { if(!botmode()) return; - conoutf("Creating bot...\n"); botent *b = BotManager.CreateBot(arg1, arg2, arg3); - if (b) conoutf("connected: %s", b->name); + if (b) conoutf("Bot connected: %s", b->name); else { conoutf("Error: Couldn't create bot!"); return; } } COMMAND(addbot, "sss"); diff --git a/source/src/texture.cpp b/source/src/texture.cpp index 225ddf9f..87ec95fd 100644 --- a/source/src/texture.cpp +++ b/source/src/texture.cpp @@ -482,7 +482,7 @@ struct Slot vector slots; -void texturereset() { slots.setsize(0); } +void texturereset() { if(execcontext==IEXC_MAPCFG) slots.setsize(0); } void texture(char *scale, char *name) {