]> git.mxchange.org Git - flightgear.git/commitdiff
- don't abort if remote model isn't installed; output missing model's
authormfranz <mfranz>
Fri, 15 Jul 2005 09:45:57 +0000 (09:45 +0000)
committermfranz <mfranz>
Fri, 15 Jul 2005 09:45:57 +0000 (09:45 +0000)
  path, so people know what to install

src/MultiPlayer/mpplayer.cxx

index 783ddce9e655b3a5d4106a8562d1c21b2db4226d..20b255ad56a5256ba6641f763b2f383154c2466f 100644 (file)
@@ -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;