1 parent 87e52e6 commit aa8bdb4Copy full SHA for aa8bdb4
1 file changed
src/Resource/XcomResourcePack.cpp
@@ -791,7 +791,15 @@ void XcomResourcePack::loadBattlescapeResources()
791
_sets[*i] = new SurfaceSet(32, 48);
792
_sets[*i]->loadPck(path, tab);
793
}
794
-
+ // incomplete chryssalid set: 1.0 data: stop loading.
795
+ if (!_sets["CHRYS.PCK"]->getFrame(225))
796
+ {
797
+ Log(LOG_FATAL) << "Version 1.0 data detected." << std::endl << std::endl << "please install the official patches" << std::endl
798
+ << "from http://www.strategycore.co.uk/files/ufo-1.2/" << std::endl
799
+ << "and http://www.strategycore.co.uk/files/ufo-1.4/" << std::endl;
800
+ ;
801
+ throw Exception("Invalid data, please check logfile.");
802
+ }
803
s.str("");
804
s << "GEODATA/" << "LOFTEMPS.DAT";
805
MapDataSet::loadLOFTEMPS(CrossPlatform::getDataFile(s.str()), &_voxelData);
0 commit comments