From 67761031909462ba9612190d4a358e45027743e9 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 15 Jul 2005 09:45:57 +0000 Subject: [PATCH] - don't abort if remote model isn't installed; output missing model's path, so people know what to install --- src/MultiPlayer/mpplayer.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/MultiPlayer/mpplayer.cxx b/src/MultiPlayer/mpplayer.cxx index 783ddce9e..20b255ad5 100644 --- a/src/MultiPlayer/mpplayer.cxx +++ b/src/MultiPlayer/mpplayer.cxx @@ -107,9 +107,12 @@ bool MPPlayer::Open(const string &sAddress, const int &iPort, const string &sCal // If the player is remote then load the model if (!bLocalPlayer) { - - LoadModel(); - + try { + LoadModel(); + } catch (...) { + SG_LOG( SG_NETWORK, SG_ALERT, "Failed to load remote model '" << sModelName << "'." ); + return false; + } } m_bInitialised = bSuccess; -- 2.39.5