DREAMWEB: Encapsulate the hack to guess if this is a CD build or not

This commit is contained in:
Bertrand Augereau 2011-08-16 03:15:43 +02:00
parent 3971a0dbf5
commit d8ff4182f7
3 changed files with 9 additions and 5 deletions

View file

@ -765,10 +765,7 @@ void DreamGenContext::updatepeople() {
}
void DreamGenContext::madmantext() {
// The original sources has two codepaths depending if the game is 'if cd' or not
// This is a hack to guess which version to use with the assumption that if we have a cd version
// we managed to load the speech.
if (data.byte(kSpeechloaded)) {
if (isCD()) {
if (data.byte(kSpeechcount) >= 63)
return;
_cmp(data.byte(kCh1playing), 255);