[Scummvm-git-logs] scummvm master -> 49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a
lephilousophe
lephilousophe at users.noreply.github.com
Sat Oct 19 20:33:33 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
49476a1bc3 CRYOMNI3D: Fix default cases to raise errors
Commit: 49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a
https://github.com/scummvm/scummvm/commit/49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2019-10-19T20:29:56+02:00
Commit Message:
CRYOMNI3D: Fix default cases to raise errors
Changed paths:
engines/cryomni3d/versailles/logic.cpp
engines/cryomni3d/video/hnm_decoder.cpp
diff --git a/engines/cryomni3d/versailles/logic.cpp b/engines/cryomni3d/versailles/logic.cpp
index 248226c..10e96d1 100644
--- a/engines/cryomni3d/versailles/logic.cpp
+++ b/engines/cryomni3d/versailles/logic.cpp
@@ -2683,7 +2683,6 @@ IMG_CB(88003) {
FixedImgCallback callback = nullptr;
switch (_gameVariables[GameVariables::kBombState]) {
case 1:
- default:
callback = &CryOmni3DEngine_Versailles::img_88003b;
break;
case 2:
@@ -2698,6 +2697,9 @@ IMG_CB(88003) {
case 5:
callback = &CryOmni3DEngine_Versailles::img_88003f;
break;
+ default:
+ error("BUG: Invalid bomb state");
+ break;
}
ZonFixedImage::CallbackFunctor *functor =
new Common::Functor1Mem<ZonFixedImage *, void, CryOmni3DEngine_Versailles>(this, callback);
@@ -4310,6 +4312,7 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() {
setPlaceState(16, 5);
break;
default:
+ error("BUG: Invalid ladder state");
break;
}
} else {
@@ -4328,6 +4331,7 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() {
setPlaceState(16, 6);
break;
default:
+ error("BUG: Invalid ladder state");
break;
}
}
diff --git a/engines/cryomni3d/video/hnm_decoder.cpp b/engines/cryomni3d/video/hnm_decoder.cpp
index bd548e4..e139f99 100644
--- a/engines/cryomni3d/video/hnm_decoder.cpp
+++ b/engines/cryomni3d/video/hnm_decoder.cpp
@@ -286,10 +286,12 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframe(Common::SeekableReadStream *st
currentPos += width;
break;
case 3:
- default:
// End of picture
eop = true;
break;
+ default:
+ error("BUG: Shouldn't be here");
+ break;
}
} else {
if (size < 2) {
More information about the Scummvm-git-logs
mailing list