[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp
From: |
Matthias Braun |
Subject: |
[netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp |
Date: |
Thu, 11 Sep 2003 21:55:56 -0400 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Matthias Braun <address@hidden> 03/09/11 21:55:56
Modified files:
src/NetPanzer/Interfaces: GameManager.cpp
Log message:
added a safety check if flags exist
Patches:
Index: netpanzer/src/NetPanzer/Interfaces/GameManager.cpp
diff -u netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.34
netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.35
--- netpanzer/src/NetPanzer/Interfaces/GameManager.cpp:1.34 Thu Sep 11
13:35:47 2003
+++ netpanzer/src/NetPanzer/Interfaces/GameManager.cpp Thu Sep 11 21:55:56 2003
@@ -824,6 +824,8 @@
UnitProfileInterface::loadUnitProfiles();
LoadUnitSurfaces();
UNIT_FLAGS_SURFACE.loadAllBMPInDirectory("pics/flags/netp/");
+ if(UNIT_FLAGS_SURFACE.getFrameCount() == 0)
+ throw Exception("Couldn't find any flag in pics/flags/netp.");
GameConfig::loadConfigScript();
return true;
@@ -835,6 +837,8 @@
UnitProfileInterface::loadUnitProfiles();
LoadUnitSurfaces();
UNIT_FLAGS_SURFACE.loadAllBMPInDirectory("pics/flags/netp/");
+ if(UNIT_FLAGS_SURFACE.getFrameCount() == 0)
+ throw Exception("Couldn't find any flag in pics/flags/netp.");
GameConfig::loadConfigScript();
}
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Matthias Braun, 2003/09/05
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Matthias Braun, 2003/09/06
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Matthias Braun, 2003/09/08
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp,
Matthias Braun <=
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Matthias Braun, 2003/09/13
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Matthias Braun, 2003/09/23
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Ivo Danihelka, 2003/09/23
- [netPanzer-CVS] netpanzer/src/NetPanzer/Interfaces GameManager.cpp, Ivo Danihelka, 2003/09/23