diff --git a/src/b_game.cpp b/src/b_game.cpp index be827eacaf..9681aa7a80 100644 --- a/src/b_game.cpp +++ b/src/b_game.cpp @@ -60,6 +60,7 @@ Everything that is changed is marked (maybe commented) with "Added by MC" #include "d_net.h" #include "d_netinf.h" #include "d_player.h" +#include "doomerrors.h" static FRandom pr_botspawn ("BotSpawn"); @@ -496,7 +497,15 @@ bool FCajunMaster::LoadBots () DPrintf ("No " BOTFILENAME ", so no bots\n"); return false; } - sc.OpenFile(tmp); + try + { + sc.OpenFile(tmp); + } + catch (CRecoverableError &err) + { + Printf("%s. So no bots\n", err.GetMessage()); + return false; + } while (sc.GetString ()) {